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

[close #83] HATCHET_BUILDPACK_BASE updates #133

Merged
merged 1 commit into from
Sep 21, 2020
Merged

Conversation

schneems
Copy link
Contributor

Currently if you want to set HATCHET_BUILDPACK_BASE, you need to do so before you require 'hatchet' which is unexpected. By evaluating this env var every time a new app is created it allows the developer to set this env var when they want instead of before requiring the library.

The other change here is to no longer default to a buildpack. While it was useful for defaulting to the Ruby buildpack when only the ruby buildpack used this library, it is confusing when setting up a new buildpack to have deploys seemingly happen but it to not use your buildpack code. This can be fixed by raising a helpful error when HATCHET_BUILDPACK_BASE is not set. However that's a breaking change. For now I'm just deprecating that fallback behavior.

Currently if you want to set HATCHET_BUILDPACK_BASE, you need to do so before you `require 'hatchet'` which is unexpected. By evaluating this env var every time a new app is created it allows the developer to set this env var when they want instead of before requiring the library.

The other change here is to no longer default to a buildpack. While it was useful for defaulting to the Ruby buildpack when only the ruby buildpack used this library, it is confusing when setting up a new buildpack to have deploys seemingly happen but it to not use your buildpack code. This can be fixed by raising a helpful error when HATCHET_BUILDPACK_BASE is not set. However that's a breaking change. For now I'm just deprecating that fallback behavior.
@schneems schneems merged commit cda508f into main Sep 21, 2020
@schneems schneems deleted the schneems/lazy-env-vars branch September 21, 2020 18:09
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