foundry: Building from source on Windows seems broken
Component
Other (please describe)
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (e6574c9 2023-06-25T10:11:04.115137400Z)
What command(s) is the bug in?
cargo install --git https://github.com/foundry-rs/foundry --profile local --force foundry-cli anvil chisel
Operating System
Windows
Describe the bug
I just wanted to do my monthly Windows upgrade of Foundry via:
cargo install --git https://github.com/foundry-rs/foundry --profile local --force foundry-cli anvil chisel
and it seems the building it from source on Windows is borked (full log):
warning: build failed, waiting for other jobs to finish...
error: failed to compile `foundry-cli v0.2.0 (https://github.com/foundry-rs/foundry#41a65936)`, intermediate artifacts can be found at `C:\Users\pasca\AppData\Local\Temp\cargo-installTzqkOQ`
error: failed to compile `anvil v0.1.0 (https://github.com/foundry-rs/foundry#41a65936)`, intermediate artifacts can be found at `C:\Users\pasca\AppData\Local\Temp\cargo-installDpXL4N`
error: failed to compile `chisel v0.1.0 (https://github.com/foundry-rs/foundry#41a65936)`, intermediate artifacts can be found at `C:\Users\pasca\AppData\Local\Temp\cargo-install8RAFRL`
Summary Failed to install foundry-cli, anvil, chisel (see error(s) above).
error: some crates failed to install
Anyone has a clue what’s going on?
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 22 (20 by maintainers)
I can’t believe it, I fucking fixed! That’s what I did:
%TEMP%folder and delete everythingrustup updateI honestly don’t know what triggered this error (maybe the
%TEMP%folder), but am just happy it works now…this worked for me, thanks!! Had so much issue, i broke everything, then couldn’t reinstall forge because of a different issue. (you’re a legend fr…)
sorry you had to deal with that,
thank you for reporting this
will take a look—haven’t seen anything in ci that could’ve pointed to this, but might be a newish pr maybe