Skip to content

Comments

Fix symbolic links to sccache on Linux#2439

Merged
sylvestre merged 4 commits intomozilla:mainfrom
ahartmetz:symlink
Sep 21, 2025
Merged

Fix symbolic links to sccache on Linux#2439
sylvestre merged 4 commits intomozilla:mainfrom
ahartmetz:symlink

Conversation

@ahartmetz
Copy link
Collaborator

#2420 with an added comment and a test

@ahartmetz ahartmetz force-pushed the symlink branch 2 times, most recently from d620592 to 8677f1c Compare September 6, 2025 19:37
@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2025

Codecov Report

❌ Patch coverage is 90.69767% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.45%. Comparing base (c7f0969) to head (977b3fc).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
tests/system.rs 92.10% 3 Missing ⚠️
src/cmdline.rs 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2439      +/-   ##
==========================================
+ Coverage   71.42%   71.45%   +0.02%     
==========================================
  Files          65       65              
  Lines       36229    36270      +41     
==========================================
+ Hits        25877    25915      +38     
- Misses      10352    10355       +3     

☔ View full report in Codecov by Sentry.
📢 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.

sertonix and others added 4 commits September 21, 2025 17:58
Whether or not env::current_exe follows symlinks is platform dependant.
On linux it follows them which made it impossible to do things like
ln -s sccache /usr/bin/cc. By reading env::args() directly we don't
have this issue.

Fixes mozilla#993
Based on rivy/rs.coreutils@ad3852a
The test just looks at the output of --version instead of trying
to compile anything. It does fail without Sertonix' fix in
cmdline.rs, at least.
@sylvestre sylvestre merged commit 892bbbf into mozilla:main Sep 21, 2025
50 of 56 checks passed
@sertonix
Copy link
Contributor

Thank you!

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.

4 participants