Skip to content

fix(linting): install ruby-dev and build-base so mdl builds - #422

Merged
patrick-hermann-sva merged 1 commit into
mainfrom
fix/linting-mdl-native-build
Oct 15, 2026
Merged

patrick-hermann-sva merged 1 commit into
mainfrom
fix/linting-mdl-native-build

Conversation

@patrick-hermann-sva

Copy link
Copy Markdown
Contributor

Problem: run-pre-commit fails before any hook runs:

ERROR:  Error installing mdl:
  ERROR: Failed to build gem native extension.
  current directory: /usr/lib/ruby/gems/3.3.0/gems/racc-1.8.1/ext/racc/cparse
  mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

gem install mdl now resolves a dependency chain with racc's native extension; the alpine image has ruby but no headers/compiler. Hits every PR in stuttgart-things/harvester since today (e.g. harvester#443, #445).

Fix: ruby-dev + build-base in the apk install.

Tested locally: dagger -m ./linting call run-pre-commit --src <harvester clone> --skip-hooks hadolint-docker,shellcheck → container builds, all hooks Passed/Skipped.

After release: bump linting-module-version default in stuttgart-things/github-workflow-templates call-pre-commit.yaml (currently v0.137.2).

🤖 Generated with Claude Code

https://claude.ai/code/session_016TtmNGbCHXQGtqnrT926ZN

`gem install mdl` now pulls racc with a native extension; on alpine
without the Ruby headers extconf.rb fails ("can't find header files for
ruby") and every run-pre-commit call errors before a hook runs (seen on
all harvester PRs since 2026-10-15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016TtmNGbCHXQGtqnrT926ZN
@patrick-hermann-sva
patrick-hermann-sva merged commit 5a94da8 into main Oct 15, 2026
5 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 15, 2026
## [0.137.4](v0.137.3...v0.137.4) (2026-10-15)

### Bug Fixes

* **linting:** install ruby-dev and build-base so mdl builds ([#422](#422)) ([5a94da8](5a94da8))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.137.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

patrick-hermann-sva added a commit to stuttgart-things/github-workflow-templates that referenced this pull request Oct 15, 2026
dagger/linting before v0.137.4 cannot install mdl (racc native extension
without ruby-dev on alpine), so every call-pre-commit run failed before
a hook ran (stuttgart-things/dagger#422). Only this template; Renovate
bumps the others together as usual.


Claude-Session: https://claude.ai/code/session_016TtmNGbCHXQGtqnrT926ZN

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant