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

Add possibility to re-use env variable with different values #120

Closed
hbragge opened this issue Dec 5, 2016 · 1 comment
Closed

Add possibility to re-use env variable with different values #120

hbragge opened this issue Dec 5, 2016 · 1 comment

Comments

@hbragge
Copy link

hbragge commented Dec 5, 2016

Consider the config below, where env variable E1 is set in two different configs to two different values. However, when accessing it from shell (note: not from bake) it will have same value in both places ("val2" in this case).

Project {
CustomConfig C1 {
Set E1, value: "val1", env: true
PreSteps {
CommandLine "echo E1: $E1"
}
DefaultToolchain GCC
}

CustomConfig C2 {
Set E1, value: "val2", env: true
PreSteps {
CommandLine "echo E1: $E1"
}
DefaultToolchain GCC
}

CustomConfig C3 {
Dependency config: C1
Dependency config: C2
DefaultToolchain GCC
}
}

Produces the output:
../envtest$ bake C3
Loading ../envtest/Project.meta
**** Building 1 of 3: envtest (C1) ****
echo E1: $E1
E1: val2
**** Building 2 of 3: envtest (C2) ****
echo E1: $E1
E1: val2
**** Building 3 of 3: envtest (C3) ****

@aschaal
Copy link
Contributor

aschaal commented Jan 3, 2017

Fixed, will work with 2.28.0.

@aschaal aschaal closed this as completed Jan 3, 2017
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

No branches or pull requests

2 participants