-
Notifications
You must be signed in to change notification settings - Fork 21
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
normalize
all paths
#17
Conversation
03fbba2
to
999a8bc
Compare
@@ -3,7 +3,7 @@ | |||
|
|||
use crate::env_variables::EnvVariables; | |||
use log::trace; | |||
use pet_utils::path::fix_file_path_casing; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to make the new intent clear
if let Ok(resolved) = fs::canonicalize(&path) { | ||
// Return the path as is. | ||
if cfg!(unix) { | ||
return resolved; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return the normalized paths even for linux (this is the main change)
|
||
#[cfg(unix)] | ||
#[test] | ||
fn read_environment_txt() { | ||
use common::{create_env_variables, resolve_test_path}; | ||
use pet_conda::environment_locations::get_conda_envs_from_environment_txt; | ||
use std::path::PathBuf; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also fixed some linter warnings
No description provided.