Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildDepsOnly: set CRANE_BUILD_DEPS_ONLY env var when running #722

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

ipetkov
Copy link
Owner

@ipetkov ipetkov commented Oct 12, 2024

Motivation

We've gotten a lot of questions/confusion around how to separate hooks which need to run or not during buildDepsOnly. Typically this involves passing different arguments to buildDepsOnly vs something like buildPackage, but this change is meant to help make that a bit easier by setting CRANE_BUILD_DEPS_ONLY during buildDepsOnly builds so hooks can short circuit as appropriate if desired.

Related to #717

Checklist

  • added tests to verify new behavior
  • added an example template or updated an existing one
  • updated docs/API.md (or general documentation) with changes
  • updated CHANGELOG.md

@ipetkov ipetkov enabled auto-merge (squash) October 12, 2024 23:13
@ipetkov ipetkov merged commit c052ed5 into master Oct 12, 2024
19 checks passed
@ipetkov ipetkov deleted the deps-only-var branch October 12, 2024 23:28
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.

1 participant