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

gclient sync error #1060

Closed
jaum20 opened this issue May 12, 2022 · 6 comments · Fixed by #1186
Closed

gclient sync error #1060

jaum20 opened this issue May 12, 2022 · 6 comments · Fixed by #1186
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@jaum20
Copy link

jaum20 commented May 12, 2022

System info

Operating System:Linux Mint 20.3 x86_64
Shaka Packager Version: v2.6.1

When I run gclient sync i get the error:

fatal: couldn't find remote ref refs/heads/master

@joeyparrish
Copy link
Member

The "master" branch has been renamed to the "main" branch. If you don't have any customizations in place in your working directory, please see updated instructions in the repo and check out a fresh copy of the source.

If you have work you need to preserve, please let us know and we can create instructions to help you update your existing checkout to the new branch name.

@jaum20
Copy link
Author

jaum20 commented May 13, 2022

I'm trying to install a fresh copy. I have no config left over from pre-master/main migration and I'm following the instructions you linked.

$ git pull origin main --rebase

From https://github.com/shaka-project/shaka-packager
 * branch            main       -> FETCH_HEAD
Already up to date.

$ gclient config https://github.com/shaka-project/shaka-packager.git --name=src --unmanaged

Warning: Running gclient on Python 3. 
If you encounter any issues, please file a bug on crbug.com under the Infra>SDK component.

$ gclient sync --no-history                                                                
Warning: Running gclient on Python 3. 
If you encounter any issues, please file a bug on crbug.com under the Infra>SDK component.

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://github.com/shaka-project/shaka-packager.git --depth=1 /home/joaopsvieira/shaka_packager/_gclient_src_0rbu3i83' in '/home/joaopsvieira/shaka_packager'
Cloning into '/home/joaopsvieira/shaka_packager/_gclient_src_0rbu3i83'...
remote: Enumerating objects: 4095, done.        
remote: Counting objects: 100% (4095/4095), done.        
remote: Compressing objects: 100% (2707/2707), done.        
remote: Total 4095 (delta 1387), reused 2957 (delta 1201), pack-reused 0        
Receiving objects: 100% (4095/4095), 29.51 MiB | 2.07 MiB/s, done.
Resolving deltas: 100% (1387/1387), done.
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://github.com/shaka-project/shaka-packager.git --depth=1 /home/joaopsvieira/shaka_packager/_gclient_src_zr0ugb66' in '/home/joaopsvieira/shaka_packager'
Cloning into '/home/joaopsvieira/shaka_packager/_gclient_src_zr0ugb66'...
remote: Enumerating objects: 4095, done.        
remote: Counting objects: 100% (4095/4095), done.        
remote: Compressing objects: 100% (2711/2711), done.        
remote: Total 4095 (delta 1387), reused 2945 (delta 1197), pack-reused 0        
Receiving objects: 100% (4095/4095), 29.51 MiB | 1.61 MiB/s, done.
Resolving deltas: 100% (1387/1387), done.
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "refs/heads/master:refs/remotes/origin/master" "--no-tags"' in /home/joaopsvieira/shaka_packager/src failed; will retry after a short nap...
Syncing projects: 100% ( 1/ 1) src
src (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00] 
[0:00:18] Finished running: git rev-parse --verify FETCH_HEAD
fatal: couldn't find remote ref refs/heads/master
[0:00:19] fatal: couldn't find remote ref refs/heads/master
[0:00:20] fatal: couldn't find remote ref refs/heads/master
[0:00:23] fatal: couldn't find remote ref refs/heads/master
[0:00:27] _____ Conflicting directory found in /home/joaopsvieira/shaka_packager/src. Moving to /home/joaopsvieira/shaka_packager/_bad_scm/srci86p1iv5.
[0:00:27] 
[0:00:48] Finished running: git rev-parse --verify FETCH_HEAD
[0:00:49] fatal: couldn't find remote ref refs/heads/master
[0:00:50] fatal: couldn't find remote ref refs/heads/master
[0:00:51] fatal: couldn't find remote ref refs/heads/master
[0:00:54] fatal: couldn't find remote ref refs/heads/master
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin refs/heads/master:refs/remotes/origin/master --no-tags' returned non-zero exit status 128 in /home/joaopsvieira/shaka_packager/src


Warnings:
Conflicting directory /home/joaopsvieira/shaka_packager/src moved to /home/joaopsvieira/shaka_packager/_bad_scm/srci86p1iv5.

@filipem81
Copy link

Hi,

I had the same issue and I fixed it pointing to a specific version:

after run: gclient config https://github.com/shaka-project/shaka-packager.git --name=src --unmanaged
then run: gclient sync -r v2.6.1

@jaum20
Copy link
Author

jaum20 commented May 18, 2022

Thank you @filipem81. That worked for me

@joeyparrish joeyparrish added this to the v2.7 milestone Jun 24, 2022
@joeyparrish joeyparrish added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release labels Jun 24, 2022
@JustDerb
Copy link

And just in case it isn't obvious, you can use -r main to compile from the tip (since it's no longer called master). I'm guessing the old depot_tools default to -r master if not specified.

@joeyparrish
Copy link
Member

gclient is going away, as part of a migration to CMake and git submodules. If you would like to help with this effort, please see #1047 (comment) to volunteer. Thanks!

@joeyparrish joeyparrish changed the title compilation error gclient sync error Oct 18, 2022
Brainiarc7 added a commit to Brainiarc7/shaka-packager that referenced this issue Mar 14, 2023
The default branch is `main`, not `master`. Indicate this on the documentation as its' not obvious.
See shaka-project#1060
joeyparrish pushed a commit that referenced this issue Jul 5, 2023
)

The default branch is `main`, not `master`. Indicate this on the
documentation as its' not obvious.

Fixes #1060
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Sep 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants