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

Run the custom commands with the envvars from manifest #413

Merged
merged 4 commits into from Feb 24, 2022

Conversation

pior
Copy link
Member

@pior pior commented Feb 18, 2022

Why

The custom commands are run with the environment variables inherited from the shell, ignoring the env section of the manifest.
Usually, the user would run bud up when the manifest is changed to apply the change.
But it's easy to miss this step, and be puzzled why the command does not work.

Injecting the envvars declared in the manifest in the custom command environment make sense until #406 is fixed and #30 is implemented.

How

If the envvar already exists in the shell environment, the envvar is not overridden.

@pior pior requested a review from mlhamel as a code owner February 18, 2022 00:04
@pior pior force-pushed the fix-custom-command-env branch 4 times, most recently from 9de7783 to 70130d0 Compare February 20, 2022 17:46
@pior pior force-pushed the fix-custom-command-env branch 2 times, most recently from 448df8a to dd59426 Compare February 23, 2022 23:39
@pior pior merged commit ea7e8c8 into master Feb 24, 2022
@pior pior deleted the fix-custom-command-env branch February 24, 2022 00:41
@pior pior restored the fix-custom-command-env branch February 28, 2022 14:31
@pior pior deleted the fix-custom-command-env branch January 10, 2024 13:29
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.

None yet

1 participant