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

Remove CNB_TARGET_* env vars workaround #260

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 11, 2024

These were added recently in #251 to work around this upstream lifecycle bug:
buildpacks/lifecycle#1308

The fix for that has since been released in lifecycle 0.19.0:
https://github.com/buildpacks/lifecycle/releases/tag/v0.19.0

Which our builder images are now using:
heroku/cnb-builder-images#475

As such, we no longer need the workaround here (and in fact, setting these env vars now cannot have an effect, since lifecycle now ignores them).

GUS-W-15225541.

These were added recently in #251 to work around this upstream
`lifecycle` bug:
buildpacks/lifecycle#1308

The fix for that has since been released in lifecycle 0.19.0:
https://github.com/buildpacks/lifecycle/releases/tag/v0.19.0

Which our builder images are now using:
heroku/cnb-builder-images#475

As such, we no longer need the workaround here (and in fact, setting
these env vars now cannot have an effect, since `lifecycle` now ignores
them).
@edmorley edmorley self-assigned this Mar 11, 2024
@edmorley edmorley marked this pull request as ready for review March 11, 2024 14:43
@edmorley edmorley requested a review from a team as a code owner March 11, 2024 14:43
@edmorley edmorley enabled auto-merge (squash) March 11, 2024 14:50
@edmorley edmorley merged commit 150553d into main Mar 11, 2024
4 checks passed
@edmorley edmorley deleted the edmorley/rm-target-workaround branch March 11, 2024 15:09
@edmorley
Copy link
Member Author

edmorley commented Mar 11, 2024

I might need to revisit this, pending:
buildpacks/lifecycle#1309 (comment)

I also noticed a way to improve test coverage, for which I opened:
heroku/cnb-builder-images#480

edmorley added a commit to heroku/cnb-builder-images that referenced this pull request Mar 15, 2024
To pick up this backported fix:
buildpacks/lifecycle#1317

...so that these images still work after the removal of the `CNB_TARGET_*`
env vars workaround in:
heroku/base-images#260

Release notes:
https://github.com/buildpacks/lifecycle/releases/tag/v0.17.5

Full changelog:
buildpacks/lifecycle@v0.17.4...v0.17.5

GUS-W-15225541.
@edmorley
Copy link
Member Author

The fix for that has since been released in lifecycle 0.19.0:
https://github.com/buildpacks/lifecycle/releases/tag/v0.19.0

And backported to v0.17.5:
https://github.com/buildpacks/lifecycle/releases/tag/v0.17.5

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