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

Cannot find '68bc64b92658dc6234f092a5f43d83743e5ea61c' object in the repository when run copybara #216

Open
maksonlee opened this issue Oct 31, 2022 · 2 comments

Comments

@maksonlee
Copy link

Something wrong when run copybara with submodules set to recursive.

$ ./copybara copy.bara.sky --force
Oct 31, 2022 5:02:01 PM com.google.copybara.Main configureLog
INFO: Setting up LogManager
Copybara source mover (Version: Unknown version)
Task: Loading config /home/administrator/.cache/bazel/_bazel_administrator/661a17f90f594da856b21f8911bf44bc/execroot/com_github_google_copybara/bazel-out/k8-fastbuild/bin/java/com/google/copTask: Git Destination: Fetching: file:///tmp/foo refs/heads/master
WARN: Git Destination: 'refs/heads/master' doesn't exist in 'file:///tmp/foo'
WARN: Cannot find last imported revision, but proceeding because of --force flag
Task: Checking out the change
ERROR: Cannot find '68bc64b92658dc6234f092a5f43d83743e5ea61c' object in the repository
core.workflow(
    name = "default",
    origin = git.github_origin(
      url = "https://github.com/mudita/MuditaOS",
      ref = "master",
      submodules = "RECURSIVE",
    ),
    destination = git.destination(
        url = "file:///tmp/foo",
    ),

    authoring = authoring.pass_thru("Default email <default@default.com>"),
)
@hsudhof
Copy link
Collaborator

hsudhof commented Oct 31, 2022

My guess would be that some sub-sub module references a revision that no longer exists upstream. Can you run with verbose logging?

Cheers,
~H

@maksonlee
Copy link
Author

We can run the following command without any problems,

$ git clone --recurse-submodules https://github.com/mudita/MuditaOS

Anyway, following is part of verbose logs,

....
Added core/gui/utils submodules, merge=false, parents=[GitRevision{sha1=3b6b4ab2a1df1349d7e2d0591b84f0129353a047, labels={GIT_SHA1=[3b6b4ab2a1df1349d7e2d0591b84f0129353a047], GIT_SHORT_SHA1=[3b6b4ab]}}]}, Change{revision=3b6b4ab2a1df1349d7e2d0591b84f0129353a047, author=Mati <swichu91@gmail.com>, dateTime=2019-05-06T11:03:39+02:00, message=

Add template for new PurePhone project, merge=false, parents=[GitRevision{sha1=2b55c044276d70f50d95f907024aad66ad84e598, labels={GIT_SHA1=[2b55c044276d70f50d95f907024aad66ad84e598], GIT_SHORT_SHA1=[2b55c04]}}]}, Change{revision=2b55c044276d70f50d95f907024aad66ad84e598, author=Mati <swichu91@gmail.com>, dateTime=2019-05-06T11:02:09+02:00, message=Initial commit
, merge=false, parents=[]}], destinationRef=null, errors=[Cannot find '68bc64b92658dc6234f092a5f43d83743e5ea61c' object in the repository]}]}
INFO: PROFILE:  18055 //copybara/run/default/squash
INFO: PROFILE:      3 //copybara/run/default/after_all_migration
INFO: PROFILE:  20464 //copybara/run/default
ERROR: Cannot find '68bc64b92658dc6234f092a5f43d83743e5ea61c' object in the repository

INFO: PROFILE:  20735 //copybara

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