Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation/update on Windows 10 with cargo fails #6190

Closed
1 of 2 tasks
JuanXavier opened this issue Nov 1, 2023 · 0 comments · Fixed by #6191 or #6194
Closed
1 of 2 tasks

Installation/update on Windows 10 with cargo fails #6190

JuanXavier opened this issue Nov 1, 2023 · 0 comments · Fixed by #6191 or #6194
Labels
T-bug Type: bug

Comments

@JuanXavier
Copy link

JuanXavier commented Nov 1, 2023

Component

cargo

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (394f217 2023-03-20T16:48:08.2804601Z)

What command(s) is the bug in?

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

Operating System

Windows

Describe the bug

When running the cargo install --git https://github.com/foundry-rs/foundry --profile local --locked forge cast chisel anvil command in PowerShell to update the framework (Windows 10), I get the following error:

NOTE: I'm able to update succesfully via foundryup when using the WSL terminal in the same machine.

error: couldn't read C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\../doctests/structs.rs: The system cannot find the path specified. (os error 3)
   --> C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\lib.rs:123:9
    |
123 | #[doc = include_str!("../doctests/structs.rs")]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\../doctests/types.rs: The system cannot find the path specified. (os error 3)
   --> C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\lib.rs:132:9
    |
132 | #[doc = include_str!("../doctests/types.rs")]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\../doctests/function_like.rs: The system cannot find the path specified. (os error 3)
   --> C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\lib.rs:148:9
    |
148 | #[doc = include_str!("../doctests/function_like.rs")]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\../doctests/events.rs: The system cannot find the path specified. (os error 3)
   --> C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\lib.rs:160:9
    |
160 | #[doc = include_str!("../doctests/events.rs")]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\../doctests/contracts.rs: The system cannot find the path specified. (os error 3)
   --> C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\lib.rs:172:9
    |
172 | #[doc = include_str!("../doctests/contracts.rs")]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\../doctests/json.rs: The system cannot find the path specified. (os error 3)
   --> C:\Users\juanx\.cargo\git\checkouts\core-3f428e9ca4699f0e\8c0db49\crates\sol-macro\src\lib.rs:193:9
    |
193 | #[doc = include_str!("../doctests/json.rs")]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `alloy-sol-macro` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `chisel v0.2.0 (https://github.com/foundry-rs/foundry#c931b70d)`, intermediate artifacts can be found at `C:\Users\juanx\AppData\Local\Temp\cargo-installchTae9`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
error: failed to compile `anvil v0.2.0 (https://github.com/foundry-rs/foundry#c931b70d)`, intermediate artifacts can be found at `C:\Users\juanx\AppData\Local\Temp\cargo-installKm3Fp3`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
     Summary Failed to install forge, cast, chisel, anvil (see error(s) above).
error: some crates failed to install
@JuanXavier JuanXavier added the T-bug Type: bug label Nov 1, 2023
@gakonst gakonst added this to Foundry Nov 1, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Nov 1, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Nov 1, 2023
@DaniPopes DaniPopes reopened this Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants