Skip to content

fix: Normalize paths before comparing them#68

Open
LukeMathWalker wants to merge 1 commit into
masterfrom
duplicate-target
Open

fix: Normalize paths before comparing them#68
LukeMathWalker wants to merge 1 commit into
masterfrom
duplicate-target

Conversation

@LukeMathWalker
Copy link
Copy Markdown
Owner

It should fix LukeMathWalker/cargo-chef#295 in cargo-chef.

Copy link
Copy Markdown
Collaborator

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

could you add a test case for this? 🙏

Comment thread src/lib.rs
Comment on lines +472 to +473
let discovered_path =
path_clean::clean(std::path::PathBuf::from(&discovered_target.path));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can the discovered paths actually contain things that require cleanup? 🤔

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.

cargo-chef 0.1.69 produces duplicate target in xplr crate

2 participants