foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.14k stars 1.69k forks source link

Building from source for `cast` is broken #8932

Open pcaversaccio opened 2 hours ago

pcaversaccio commented 2 hours ago

Repro:

cargo install --git https://github.com/foundry-rs/foundry --profile release --locked forge cast chisel anvil

Output:

image

and

Replacing C:\Users\yolo\.cargo\bin\anvil.exe
Replaced package `anvil v0.2.0 (https://github.com/foundry-rs/foundry#d90e997d)` with `anvil v0.2.0 (https://github.com/foundry-rs/foundry#cd1c77aa)` (executable `anvil.exe`)
Summary Successfully installed forge, chisel, anvil! Failed to install cast (see error(s) above).

OS: Windows

mattsse commented 2 hours ago

@DaniPopes I believe this due to how cargo install works, and since we renamed the crate to foundry-cast, we'd need to run as forge foundry-cast chisel anvil, even though the binary is still called cast

pcaversaccio commented 1 hour ago

@DaniPopes I believe this due to how cargo install works, and since we renamed the crate to foundry-cast, we'd need to run as forge foundry-cast chisel anvil, even though the binary is still called cast

This seems right - just tested. Is there a way of aliasing it somehow? Also, the docs should be updated to reflect this change: https://book.getfoundry.sh/getting-started/installation#building-from-source