matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

./install-foundry-zksync This command runs incorrectly #559

Closed lkf233 closed 2 months ago

lkf233 commented 2 months ago

Component

Foundryup

Have you ensured that all of these are up to date?

What version of Foundry are you on?

forge 0.2.0 (d75318c 2024-09-01T00:25:39.200909100Z)

What command(s) is the bug in?

./install-foundry-zksync

Operating System

Windows

Describe the bug

lkf@DESKTOP-DBKAFE7 MINGW64 /d/web3/code/foundry-z/foundry-zksync (main)
$ ./install-foundry-zksync 
Navigating to the foundryup-zksync script...
Making install script executable...
Running the installation script...
Installing foundryup-zksync...

Detected your preferred shell is bash and added foundryup-zksync to PATH.
Run 'source /c/Users/lkf/.bashrc' or start a new terminal session to use foundryup-zksync.
Then, simply run 'foundryup-zksync' to install foundry-zksync.
Sourcing the shell configuration file: '/c/Users/lkf/.bashrc'
Running foundryup-zksync setup...

.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx

 ╔═╗ ╔═╗ ╦ ╦ ╔╗╔ ╔╦╗ ╦═╗ ╦ ╦         Portable and modular toolkit
 ╠╣  ║ ║ ║ ║ ║║║  ║║ ╠╦╝ ╚╦╝    for Ethereum Application Development
 ╚   ╚═╝ ╚═╝ ╝╚╝ ═╩╝ ╩╚═  ╩                 written in Rust.

.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx

Fork of    : https://github.com/foundry-rs/
Repo       : https://github.com/matter-labs/foundry-zksync/
Book       : https://book.getfoundry.sh/

.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx

foundryup-zksync: installing foundry (version nightly, tag nightly)
foundryup-zksync: downloading latest forge, and cast
curl: (56) Failure when receiving data from the peer        #

foundryup-zksync: command failed: download https://github.com/matter-labs/foundry-zksync/releases/download/nightly/foundry_nightly_win32_amd64.zip /tmp/tmp.2DhTeyDO6Z/foundry-zksync.zip
https://github.com/matter-labs/foundry-zksync/releases/download/nightly/foundry_nightly_win32_amd64.zip

Although I use Windows, I do it with the bash command I ran this command and it seems to say download failed? And this download .zip website can't be opened

nbaztec commented 2 months ago

Thanks for reporting, we currently do not release binaries for windows and that needs to be reflected in the foundryup-zksync script. You can however manually select the platform via --platform linux