go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

go-ethereum cloning

Open amysy opened this issue 3 years ago • 1 comments

System information

Geth version: geth version 19.9 OS & Version: Windows/Linux/OSX Windows 10 x64 Ent Commit hash : (if develop)

Expected behaviour Successful cloning of go-ethereum repo

Actual behaviour fatal error

Steps to reproduce the behaviour run the cloning from git hub desktop version 3.08

Backtrace

cloning the go-ethereum repository giving following error:
Cloning into 'C:\..Desktop\Block-Geth\go-ethereum'...
remote: Enumerating objects: 109478, done.        
remote: Counting objects: 100% (11/11), done.        
remote: Compressing objects: 100% (10/10), done.        
remote: Total 109478 (delta 1), reused 7 (delta 1), pack-reused 109467        
Receiving objects: 100% (109478/109478), 183.55 MiB | 1.20 MiB/s, done.
Resolving deltas: 100% (65965/65965), done.
Updating files: 100% (1843/1843), done.
Submodule 'evm-benchmarks' (https://github.com/ipsilon/evm-benchmarks) registered for path 'tests/evm-benchmarks'
Submodule 'tests' (https://github.com/ethereum/tests) registered for path 'tests/testdata'
Cloning into 'C:/ ..Block-Geth/go-ethereum/tests/evm-benchmarks'...
remote: Enumerating objects: 38, done.        
remote: Counting objects: 100% (38/38), done.        
remote: Compressing objects: 100% (30/30), done.        
remote: Total 38 (delta 6), reused 38 (delta 6), pack-reused 0        
Receiving objects: 100% (38/38), 68.49 KiB | 561.00 KiB/s, done.
Resolving deltas: 100% (6/6), done.
Cloning into 'C:/.. Block-Geth/go-ethereum/tests/testdata'...
remote: Enumerating objects: 136317, done.        
remote: Counting objects: 100% (136317/136317), done.        
remote: Compressing objects: 100% (16117/16117), done.        
remote: Total 136317 (delta 132482), reused 122454 (delta 120063), pack-reused 0        
Receiving objects: 100% (136317/136317), 214.68 MiB | 1.17 MiB/s, done.
Resolving deltas: 100% (132482/132482), done.
Submodule path 'tests/evm-benchmarks': checked out '849b3e239a28f236dc99574b2e10e0c720895105'
Submodule path 'tests/testdata': checked out 'a380655e5ffab1a5ea0f4d860224bdb19013f06a'
Submodule 'LegacyTests' (https://github.com/ethereum/legacytests) registered for path 'tests/testdata/LegacyTests'
Cloning into 'C:/..Block-Geth/go-ethereum/tests/testdata/LegacyTests'...
remote: Enumerating objects: 30562, done.        
remote: Counting objects: 100% (2460/2460), done.        
remote: Compressing objects: 100% (95/95), done.        
remote: Total 30562 (delta 2365), reused 2456 (delta 2363), pack-reused 28102        
Receiving objects: 100% (30562/30562), 33.95 MiB | 1.51 MiB/s, done.
Resolving deltas: 100% (29381/29381), done.
error: unable to create file src/LegacyTests/Constantinople/BlockchainTestsFiller/GeneralStateTests/stMemExpandingEIP150Calls/CallAndCallcodeConsumeMoreGasThenTransactionHasWithMemExpandingCalls_d0g0v0Filler.json: Filename too long
error: unable to create file src/LegacyTests/Constantinople/BlockchainTestsFiller/GeneralStateTests/stMemExpandingEIP150Calls/ExecuteCallThatAskMoreGasThenTransactionHasWithMemExpandingCalls_d0g0v0Filler.json: Filename too long
fatal: Unable to checkout 'd7abc42a7b352a7b44b1f66b58aca54e4af6a9d7' in submodule path 'tests/testdata/LegacyTests'
fatal: Failed to recurse into submodule path 'tests/testdata'

Would you like to retry cloning ?  I get same error with same message after retrying. Kindly help
[backtrace]

When submitting logs: please submit them as text and not screenshots.

amysy avatar Sep 20 '22 22:09 amysy

What's the command? This command doesn't work?

git clone https://github.com/ethereum/go-ethereum.git

rjl493456442 avatar Sep 21 '22 02:09 rjl493456442

You're cloning into an already quite long path (?): C:/ ..Block-Geth/go-ethereum/. Try a shorter one perhaps?

holiman avatar Sep 22 '22 08:09 holiman

Internet says the windows limit is 260 characters, and that string is 183, so a shorter base-path should "fix" it.

holiman avatar Sep 22 '22 08:09 holiman

I'll just close this. One thing that can be done is to file a ticket on tests and try to make them use shorter files.

holiman avatar Sep 22 '22 08:09 holiman