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

Cargo Build "Path Too Long" on Windows #486

Closed
brentarias opened this issue Jan 7, 2025 · 1 comment
Closed

Cargo Build "Path Too Long" on Windows #486

brentarias opened this issue Jan 7, 2025 · 1 comment

Comments

@brentarias
Copy link

On master branch (commit a98921f) I get a "path too long" build error:

PS C:\repos\helios> cargo build --release
    Updating crates.io index
    Updating git submodule `https://github.com/ethereum/tests.git`
error: failed to get `triehash-ethereum` as a dependency of package `helios-core v0.7.0 (C:\repos\helios\core)`

Caused by:
  failed to load source for dependency `triehash-ethereum`

Caused by:
  Unable to update https://github.com/openethereum/parity-ethereum?rev=55c90d4016505317034e3e98f699af07f5404b63#55c90d40

Caused by:
  failed to update submodule `ethcore/res/ethereum/tests`

Caused by:
  path too long: 'C:/Users/baria/.cargo/git/checkouts/parity-ethereum-9480f7de356d0285/55c90d4/ethcore/res/ethereum/tests/LegacyTests/Constantinople/BlockchainTests/GeneralStateTests/stMemExpandingEIP150Calls/CallAndCallcodeConsumeMoreGasThenTransactionHasWithMemExpandingCalls_d0g0v0.json'; class=Filesystem (30)

cargo version 1.77.2

Ideas?

@ncitron
Copy link
Collaborator

ncitron commented Jan 7, 2025

This seems to be a known issue in cargo on windows. This thread recommends some mitigations: rust-lang/cargo#13020

@ncitron ncitron closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants