Skip to content

Canonicalize snapshot paths before reducing#626

Merged
max-sixty merged 2 commits intomitsuhiko:masterfrom
max-sixty:canonicalize-paths
Oct 1, 2024
Merged

Canonicalize snapshot paths before reducing#626
max-sixty merged 2 commits intomitsuhiko:masterfrom
max-sixty:canonicalize-paths

Conversation

@max-sixty
Copy link
Copy Markdown
Collaborator

@max-sixty max-sixty commented Oct 1, 2024

Fixes #625

As ever, the reason is a bit different from the one I initially understood. It's actually that we're reducing the paths by whether one prefixes the other. But in this case the path is only a prefix before it's canonicalized!

On the upside, this case will now work without --workspace-root.

Fixes mitsuhiko#625

As ever, the reason is a bit different from the one I described there; it's actually that we're reducing the paths by whether one prefixes the other. But in this case the path is only a prefix before it's canonicalized!

On the upside, this case will now work without `--workspace-root`.
@max-sixty
Copy link
Copy Markdown
Collaborator Author

(requires a test before merging)

@max-sixty max-sixty merged commit 6318b6a into mitsuhiko:master Oct 1, 2024
@max-sixty max-sixty deleted the canonicalize-paths branch October 1, 2024 06:06
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-insta v1.40.0 --workspace-root regression

1 participant