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

[develop] Workaround nox's install only flag #53487

Merged
merged 2 commits into from
Jun 17, 2019

Conversation

s0undt3ch
Copy link
Collaborator

What does this PR do?

To get some information from the system, which we then use to choose the appropriate static requirements file, we need to run some commands, something that nox will refuse to do if --install-only is passed.

We work around it by manually patching the value ofsession._runner.global_config.install_only for the commands that we MUST run, and only those and then we set it back to the value it had before.

For additional information about why we have to do this, please see:
wntrblm/nox#181

To get some information from the system, which we then use to choose the
appropriate static requirements file, we need to run some commands,
something that nox will refuse to do if `--install-only` is passed.

We work around it by manually patching the value of
`session._runner.global_config.install_only` for the commands that we
MUST run, and only those and then we set it back to the value it had
before.

For additional information about why we have to do this, please see:
   wntrblm/nox#181
@s0undt3ch
Copy link
Collaborator Author

Approved and tests pass, merging.

@s0undt3ch s0undt3ch merged commit 43d005e into saltstack:develop Jun 17, 2019
@s0undt3ch s0undt3ch deleted the hotfix/fix-nox-bypass-develop branch June 17, 2019 10:50
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.

3 participants