Repository navigation
deps: bump which from 6 to 8 - #3073
Merged
Merged
Conversation
which 8 drops its rustix 0.38, home and winsafe dependencies. It also resolves relative PATH entries against the cwd passed to which_in and returns an absolute path. That fixes server-side lookups (assembler, nvcc) that previously resolved them against the server's cwd, but broke the argv[0] masquerade check in cmdline.rs, which removed sccache's own directory by comparing against raw PATH entries. Use which_in_all and take the first candidate that isn't sccache itself instead, so we don't have to mirror which's path rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3073 +/- ##
==========================================
- Coverage 79.99% 77.73% -2.26%
==========================================
Files 76 76
Lines 47374 47140 -234
==========================================
- Hits 37897 36646 -1251
- Misses 9477 10494 +1017 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
|
Thanks for your PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
whichto 8.0.6. That drops rustix 0.38, home, linux-raw-sys 0.4 and winsafe from Cargo.lock. which 8's default features are justreal-sys, so thedefault-features = falseis gone.which 8 also resolves relative PATH entries against the
cwdpassed towhich_inand returns an absolute path. Server-side lookups (assembler, nvcc) now resolve those entries against the client's cwd rather than the server's. There's a unit test for that.That change broke the argv[0] masquerade check in cmdline.rs. It removed sccache's own directory from PATH by comparing against raw PATH entries, so a relative entry no longer matched and sccache ended up calling itself. It now uses
which_in_alland takes the first candidate that isn't sccache, so we don't have to mirror which's path rules.test_symlinked_exenow covers a relative PATH entry.While looking at this I found harryfei/which-rs#132: a trailing
/on a relative path is dropped. It doesn't affect sccache.