Recipe build fails with error git checkout failed

Asked by Roman

Hi,

For some reasons my recipe fails with error: git checkout failed. Here is my recipe:

# git-build-recipe format 0.4 deb-version {debupstream}-0
lp:~dismine/valentina/+git/valentina 008fe28fae028420ea36d81cc9b30cc94623c7ab
merge packaging lp:~dismine/valentina/+git/debian e0f221487383ae3f1fbd3cf8898e09fa8dda1e28

I tried both options: tag and commit hash. Neither work.

Part of the log:
Building recipe:
# git-build-recipe format 0.4 deb-version {debupstream}-0
lp:~dismine/valentina/+git/valentina 008fe28fae028420ea36d81cc9b30cc94623c7ab
merge packaging lp:~dismine/valentina/+git/debian e0f221487383ae3f1fbd3cf8898e09fa8dda1e28

RUN ['git-build-recipe', '--safe', '--no-build', '--manifest', '/home/buildd/build-RECIPEBRANCHBUILD-2006574/chroot-autobuild/home/buildd/work/tree/manifest', '--distribution', 'disco', '--allow-fallback-to-native', '--append-version', '~ubuntu19.04.1', '/home/buildd/build-RECIPEBRANCHBUILD-2006574/chroot-autobuild/home/buildd/work/recipe', '/home/buildd/build-RECIPEBRANCHBUILD-2006574/chroot-autobuild/home/buildd/work/tree']
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 320, in pull_or_clone
    base_branch.git_call("checkout", base_branch.commit)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 652, in git_call
    **kwargs)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', '-C', '/home/buildd/build-RECIPEBRANCHBUILD-2006574/chroot-autobuild/home/buildd/work/tree/recipe', 'checkout', '008fe28fae028420ea36d81cc9b30cc94623c7ab']' returned non-zero exit status 128

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 9, in <module>
    load_entry_point('git-build-recipe==0.1', 'console_scripts', 'git-build-recipe')()
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/main.py", line 110, in main
    build_tree(base_branch, working_directory)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 479, in build_tree
    _build_inner_tree(base_branch, target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 400, in _build_inner_tree
    pull_or_clone(base_branch, target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 322, in pull_or_clone
    raise CheckoutFailed(e.output)
gitbuildrecipe.recipe.CheckoutFailed: git checkout failed:
fatal: reference is not a tree: 008fe28fae028420ea36d81cc9b30cc94623c7ab

I have checked correctness of commit hash (008fe28fae028420ea36d81cc9b30cc94623c7ab) and it must be valid. Can some one help me with this issue? Thanks.

Question information

Language:
English Edit question
Status:
Expired
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Roman (dismine) said :
#1

Just my mistake. I had wrong repo setted as base for project.

Revision history for this message
Roman (dismine) said :
#2

No, unfortunately i was rush in conclusion. It still is not resolved.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.