Skip to content

fix: pass per-repo pipeline dirs to melange compile - #36

Merged
justinvreeland merged 1 commit into
chainguard-dev:mainfrom
justinvreeland:OS-2428
Aug 17, 2026
Merged

fix: pass per-repo pipeline dirs to melange compile#36
justinvreeland merged 1 commit into
chainguard-dev:mainfrom
justinvreeland:OS-2428

Conversation

@justinvreeland

Copy link
Copy Markdown
Member

Summary

  • The shellcheck-run-steps hook hardcoded a single --pipeline-dir flag derived from the file's parent directory. This fails for packages in enterprise-packages/ and extra-packages/ that reference pipelines from other tiers (e.g. pipelines/py/pip-vendor-bump.yaml).
  • Adds a PIPELINE_DIRS mapping matching stereo's dirToPipelineDirs so each package tier gets the correct set of --pipeline-dir flags passed to melange compile.
  • Falls back to the original single-dir behavior for files not in a known tier.

Fixes the failure Chris Herborth hit when committing enterprise-packages/graalvm-25.yaml in a git worktree.

Resolves OS-2428

🤖 Generated with Claude Code

The shellcheck-run-steps hook hardcoded a single --pipeline-dir flag
derived from the file's parent directory. This fails for packages in
enterprise-packages/ and extra-packages/ that reference pipelines from
other tiers (e.g. pipelines/py/pip-vendor-bump.yaml).

Add a PIPELINE_DIRS mapping matching stereo's dirToPipelineDirs so each
package tier gets the correct set of --pipeline-dir flags passed to
melange compile.

Fixes OS-2428
@justinvreeland justinvreeland self-assigned this Jul 17, 2026
@justinvreeland
justinvreeland marked this pull request as ready for review August 17, 2026 21:30
@justinvreeland
justinvreeland merged commit cb5aabf into chainguard-dev:main Aug 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants