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

only warn about build.script_env when splitting with --no-test #5148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Jan 23, 2024

rather than unconditionally warning about a possibly irrelevant scenario.

Description

Any time build.script_env is used produces a warning (one for each variable) that if you happen to split build and test with --no-test you should make sure the test env matches. The only way to avoid this warning is to never use build.script_env.

This moves the warning to a single warning, displayed only if --no-test is given. So in the vast majority of cases, no warning is produced.

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 23, 2024
rather than unconditionally warning about a possibly irrelevant scenario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

None yet

2 participants