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

feat(config): allow environment[].variables to reference top-level vars #1910

Merged
merged 2 commits into from
Jun 26, 2020

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Jun 26, 2020

This makes it easier to keep your project config neat and concise, allowing for some deduplication when environment configs repeat a lot of variables.

Also fixes the issue where template strings were resolved in all
environments, instead of just the selected one.

Fixes #1814

@thsig thsig self-assigned this Jun 26, 2020
@edvald
Copy link
Collaborator Author

edvald commented Jun 26, 2020

Small bug that's failing the tests there, easy fix though, will push that in a bit

Copy link
Collaborator

@thsig thsig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Also fixes the issue where template strings were resolved in all
environments, instead of just the selected one.

Fixes #1814
@edvald edvald force-pushed the variable-improvement branch from ce67728 to a504f20 Compare June 26, 2020 13:11
@edvald edvald force-pushed the variable-improvement branch from a504f20 to 53999ae Compare June 26, 2020 13:24
@edvald edvald merged commit bd87271 into master Jun 26, 2020
@edvald edvald deleted the variable-improvement branch June 26, 2020 14:40
eysi09 pushed a commit that referenced this pull request Jun 28, 2020
…rs (#1910)

* feat(config): allow environment[].variables to reference top-level vars

Also fixes the issue where template strings were resolved in all
environments, instead of just the selected one.

Fixes #1814
eysi09 pushed a commit that referenced this pull request Jun 30, 2020
…rs (#1910)

* feat(config): allow environment[].variables to reference top-level vars

Also fixes the issue where template strings were resolved in all
environments, instead of just the selected one.

Fixes #1814
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.

Garden resolves template strings for environments that aren't in use
2 participants