mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.85k stars 552 forks source link

Add required winapi features #2160

Closed Systemcluster closed 6 months ago

Systemcluster commented 6 months ago

Currently cargo install sccache fails due to missing winapi features:

error[E0432]: unresolved import `winapi::um::processenv`
   --> C:\Users\x\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sccache-0.8.0\src\commands.rs:136:21
    |
136 |     use winapi::um::processenv::SetStdHandle;
    |                     ^^^^^^^^^^ could not find `processenv` in `um`

This is due to the recent winapi-utils update removing its winapi depencency, which before, through feature-unification, made them available to sccache: https://github.com/BurntSushi/winapi-util/commit/732de05aa8e75489864e57896e58ab987802fc50

Both "processenv" and "std" are required to compile.

Xuanwo commented 6 months ago

Hi, please try installing sccache via cargo install sccache --locked. Otherwise, you are install sccache with the latest version instead of the one we tested and locked.

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 43.92%. Comparing base (0cc0c62) to head (63d8bc7). Report is 21 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2160 +/- ## =========================================== + Coverage 30.91% 43.92% +13.01% =========================================== Files 53 53 Lines 20112 20348 +236 Branches 9755 9705 -50 =========================================== + Hits 6217 8938 +2721 + Misses 7922 7889 -33 + Partials 5973 3521 -2452 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.