-
Notifications
You must be signed in to change notification settings - Fork 363
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
bump and unbump share environment variable object #3492
Labels
bug
Something isn't working
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The bump and unbump tasks interfere with each other's environment variables. For example, if you do
you will find that
"EXAMPLE": "foo"
appears in both the bump and unbump tasks in tasks.json.This becomes problematic when wanting to set the same environment variable to different values. For example, if you desired to do
you'd find that "STEP_NAME" is "unbump" in both cases.
I'm not sure what the intended behavior of
is though, so I'm not sure what the most appropriate fix is.
If the intended behavior is that EXAMPLE has been added to the task then I think the fix is to replace
env: env
withenv: { ...env }
in at least one of the locations in https://github.com/projen/projen/blob/main/src/version.ts#L105-L117.If the intended behavior is that EXAMPLE is not added then I think the fix is for https://github.com/projen/projen/blob/main/src/task.ts#L63 to be
this._env = { ...props.env };
. This second approach would imply the need for similar changes toconditions
,steps
, andrequiredEnv
though.The text was updated successfully, but these errors were encountered: