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

tests: avoid modifying PATH outside CI #168

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

mistydemeo
Copy link
Contributor

cargo test outside CI would end up adding the temporary directory persistently to user's real dotfiles. Leave this on in CI because it doesn't hurt anything there.

NOTE: this environment variable isn't supported on Windows at the moment - we should probably try to unify that behaviour.

Refs axodotdev/cargo-dist#1374.

`cargo test` outside CI would end up adding the temporary
directory persistently to user's real dotfiles. Leave this on
in CI because it doesn't hurt anything there.

NOTE: this environment variable isn't supported on Windows at the
moment - we should probably try to unify that behaviour.

Refs axodotdev/cargo-dist#1374.
@mistydemeo mistydemeo requested a review from Gankra August 27, 2024 23:28
Copy link
Contributor

@Gankra Gankra left a comment

Choose a reason for hiding this comment

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

I usually prefer checking if unwrap_or_default().is_empty() but certainly an improvement in policy...

@mistydemeo
Copy link
Contributor Author

We use is_ok()/is_err() pretty much exclusively in cargo-dist, so I was using that pattern.

mistydemeo added a commit to axodotdev/cargo-dist that referenced this pull request Aug 28, 2024
This is supported from the environment in the shell installer, but
was previously only supported on the CLI in the powershell installer.

This will be useful to ensure axoupdater tests don't pollute the
environment: axodotdev/axoupdater#168

refs #1374.
@mistydemeo mistydemeo merged commit bc578ed into main Aug 28, 2024
13 checks passed
@mistydemeo mistydemeo deleted the tests_no_modify_path branch August 28, 2024 20:58
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.

2 participants