-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fetch dart has something wrong! #49124
Comments
Getting the same issue here, unable to fetch the source - is there a way to perhaps fetch a specific tag/branch with
|
Workaround: run gclient sync manually, after the fetch command fails. There was a broken submodule link added to the SDK repo. The only command that fails on this broken link is the command git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all' which is only run by the fetch command from depot_tools. |
This git submodule link was added in a rebase of CL https://dart-review.googlesource.com/c/sdk/+/243647/4..5 This seems to be an erroneous commit of some work in progress. Removing just that submodule link at pkg/analysis_server/native/cJSON. Bug: #49124 Change-Id: I068db76c0afeb2f0eb4bac1ce23867d777c5f3bc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246440 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: William Hesse <whesse@google.com>
Running: gclient root
Updating depot_tools...
Running: gclient config --spec 'solutions = [
{
"name": "sdk",
"url": "https://dart.googlesource.com/sdk.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {},
},
]
'
Updating depot_tools...
Running: gclient sync
Updating depot_tools...
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/sdk.git /Users/xxx/Documents/GitHub_MySelf/dart-sdk/_gclient_sdk_w6wyde6q' in '/Users/xxx/Documents/GitHub_MySelf/dart-sdk'
Cloning into '/Users/xxx/Documents/GitHub_MySelf/dart-sdk/_gclient_sdk_w6wyde6q'...
remote: Total 1248298 (delta 919221), reused 1248298 (delta 919221)
Receiving objects: 100% (1248298/1248298), 1.35 GiB | 8.33 MiB/s, done.
Resolving deltas: 100% (919221/919221), done.
Syncing projects: 100% (100/100), done.
Running hooks: 100% (8/8), done.
Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
Traceback (most recent call last):
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/fetch.py", line 285, in
sys.exit(main())
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/fetch.py", line 280, in main
return run(args, spec, root)
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/fetch.py", line 274, in run
return checkout.init()
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/fetch.py", line 153, in init
self.run_git(
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/fetch.py", line 109, in run_git
return git_common.run(*cmd, **kwargs)
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/git_common.py", line 748, in run
return run_with_stderr(*cmd, **kwargs)[0]
File "/Users/xxx/Documents/GitHub_MySelf/depot_tools/git_common.py", line 818, in run_with_stderr
raise subprocess2.CalledProcessError(retcode, cmd, os.getcwd(), ret, err)
subprocess2.CalledProcessError: Command 'git -c color.ui=never submodule foreach git config -f $toplevel/.git/config submodule.$name.ignore all' returned non-zero exit status 128 in /Users/xxx/Documents/GitHub_MySelf/dart-sdk
fatal: No url found for submodule path 'pkg/analysis_server/native/cJSON' in .gitmodules
The text was updated successfully, but these errors were encountered: