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

fetch dart has something wrong! #49124

Closed
pythonName opened this issue May 27, 2022 · 2 comments
Closed

fetch dart has something wrong! #49124

pythonName opened this issue May 27, 2022 · 2 comments
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Comments

@pythonName
Copy link

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

@lrhn lrhn added the area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. label May 27, 2022
@Salakar
Copy link

Salakar commented May 27, 2022

Getting the same issue here, unable to fetch the source - is there a way to perhaps fetch a specific tag/branch with fetch?

Step #0: ________ running 'python3 sdk/tools/generate_package_config.py' in '/workspace/build/dart_sdk_source'
Step #0: ________ running 'python3 sdk/tools/generate_sdk_version_file.py' in '/workspace/build/dart_sdk_source'
Step #0: ________ running 'python3 sdk/build/linux/sysroot_scripts/install-sysroot.py --arch i386' in '/workspace/build/dart_sdk_source'
Step #0: Installing Debian Jessie i386 root image: /workspace/build/dart_sdk_source/sdk/build/linux/debian_jessie_i386-sysroot
Step #0: Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/7031a828c5dcedc937bbf375c42daab08ca6162f/debian_jessie_i386_sysroot.tgz
Step #0: ________ running 'python3 sdk/build/linux/sysroot_scripts/install-sysroot.py --arch amd64' in '/workspace/build/dart_sdk_source'
Step #0: Installing Debian Jessie amd64 root image: /workspace/build/dart_sdk_source/sdk/build/linux/debian_jessie_amd64-sysroot
Step #0: Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/7031a828c5dcedc937bbf375c42daab08ca6162f/debian_jessie_amd64_sysroot.tgz
Step #0: ________ running 'python3 sdk/build/linux/sysroot_scripts/install-sysroot.py --arch arm' in '/workspace/build/dart_sdk_source'
Step #0: Installing Debian Jessie arm root image: /workspace/build/dart_sdk_source/sdk/build/linux/debian_jessie_arm-sysroot
Step #0: Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/7031a828c5dcedc937bbf375c42daab08ca6162f/debian_jessie_arm_sysroot.tgz
Step #0: ________ running 'python3 sdk/build/linux/sysroot_scripts/install-sysroot.py --arch arm64' in '/workspace/build/dart_sdk_source'
Step #0: Installing Debian Jessie arm64 root image: /workspace/build/dart_sdk_source/sdk/build/linux/debian_jessie_arm64-sysroot
Step #0: Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/7031a828c5dcedc937bbf375c42daab08ca6162f/debian_jessie_arm64_sysroot.tgz
Step #0: ________ running 'python3 sdk/tools/buildtools/update.py' in '/workspace/build/dart_sdk_source'
Step #0: Running: gclient root
Step #0: Running: gclient config --spec 'solutions = [
Step #0:   {
Step #0:     "name": "sdk",
Step #0:     "url": "https://dart.googlesource.com/sdk.git",
Step #0:     "deps_file": "DEPS",
Step #0:     "managed": False,
Step #0:     "custom_deps": {},
Step #0:   },
Step #0: ]
Step #0: '
Step #0: Running: gclient sync --no-history
Step #0: Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
Step #0: Traceback (most recent call last):
Step #0:   File "/workspace/depot_tools/fetch.py", line 285, in <module>
Step #0:     sys.exit(main())
Step #0:   File "/workspace/depot_tools/fetch.py", line 280, in main
Step #0:     return run(args, spec, root)
Step #0:   File "/workspace/depot_tools/fetch.py", line 274, in run
Step #0:     return checkout.init()
Step #0:   File "/workspace/depot_tools/fetch.py", line 153, in init
Step #0:     self.run_git(
Step #0:   File "/workspace/depot_tools/fetch.py", line 109, in run_git
Step #0:     return git_common.run(*cmd, **kwargs)
Step #0:   File "/workspace/depot_tools/git_common.py", line 748, in run
Step #0:     return run_with_stderr(*cmd, **kwargs)[0]
Step #0:   File "/workspace/depot_tools/git_common.py", line 818, in run_with_stderr
Step #0:     raise subprocess2.CalledProcessError(retcode, cmd, os.getcwd(), ret, err)
Step #0: 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 /workspace/build/dart_sdk_source
Step #0: fatal: No url found for submodule path 'pkg/analysis_server/native/cJSON' in .gitmodules

@whesse
Copy link
Contributor

whesse commented May 30, 2022

Workaround: run gclient sync manually, after the fetch command fails.
Fix: remove the broken submodule link added to the SDK repo.
A CL to fix this is https://dart-review.googlesource.com/c/sdk/+/246440

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.

copybara-service bot pushed a commit that referenced this issue May 30, 2022
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

5 participants