Skip to content

deps: bump which from 6 to 8 - #3073

Merged
sylvestre merged 1 commit into
mozilla:mainfrom
loganrosen:loganrosen-deps-bump-which-8
Nov 27, 2026
Merged

sylvestre merged 1 commit into
mozilla:mainfrom
loganrosen:loganrosen-deps-bump-which-8

Conversation

@loganrosen

@loganrosen loganrosen commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Bumps which to 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 just real-sys, so the default-features = false is gone.

which 8 also resolves relative PATH entries against the cwd passed to which_in and 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_all and takes the first candidate that isn't sccache, so we don't have to mirror which's path rules. test_symlinked_exe now 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.

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-commenter

codecov-commenter commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.73%. Comparing base (fdda84b) to head (970a158).
⚠️ Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre
sylvestre merged commit 39d8183 into mozilla:main Nov 27, 2026
51 checks passed
@sylvestre

Copy link
Copy Markdown
Collaborator

Thanks for your PR

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.

3 participants