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

Environment definitions in task files should have precedence over predefined environment variables #1053

Conversation

jaedle
Copy link
Contributor

@jaedle jaedle commented Mar 12, 2023

Hey 👋

I have tried to add a test + a fix for the (potential) bug #1038.

Describe your changes

Environment variable definitions within a task file take precedence over environment variables defined in shell.

backwards compatibility

Changes may have problems about backwards compatibility:
Despite no test are failing nor any documentation guaranteed that behavior, it may have an impact.
I would like to discuss that.

Tasks

  • high level test (task_test.go)
  • code style (fmt & lint)
  • document change

Testing

In order to test that behavior, it was mandatory to compile / run the task binary itself.
As an explicit and repeatable control over the outside environment configuration is mandatory, I think following that path is the only path that leads to real feedback.

@andreynering
Copy link
Member

See my comment: #1038 (comment).

@andreynering
Copy link
Member

Closing in favor of #1633

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.

Environment variables from shell takes precedence over task file definition
2 participants