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

When using Config.launch expand environment variables #81

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

MHendricks
Copy link
Member

@MHendricks MHendricks commented Nov 23, 2023

Checklist

  • I have read the CONTRIBUTING.md document
  • I formatted my changes with black
  • I linted my changes with flake8
  • I have added documentation regarding my changes where necessary
  • Any pre-existing tests continue to pass
  • Additional tests were made covering my changes

Types of Changes

  • Bugfix (change that fixes an issue)
  • New Feature (change that adds functionality)
  • Documentation Update (if none of the other choices apply)

Proposed Changes

When using subprocess to launch an alias that extends an existing env var by using {PATH!e}, it would add %PATH%, $PATH, etc instead of including the actual value of PATH. This is incorrect and breaks applications. See tests/distros/aliased/2.0/.hab.json for an example.

The variables being passed to subprocess are expected to be expanded.
@MHendricks MHendricks merged commit c68d27c into main Nov 27, 2023
31 checks passed
@MHendricks MHendricks deleted the mikeh/expand_update_environ branch November 27, 2023 18:30
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.

1 participant