Failed to download sources, not a gitlink tree

Alexander Larsson alexl at redhat.com
Wed Mar 27 10:26:24 UTC 2019


On Tue, Mar 26, 2019 at 5:00 PM Chris Hessing <chris at open1x.org> wrote:
>
> Hello all,
>
>
> I'm attempting to create my first flatpak file, and have run headlong in
> to an error that searching the net hasn't turned up an answer for.
> Specifically, when I attempt to run flatpak-builder with the following
> command line :
>
>
> flatpak-builder --ccache --repo=repo --subject="Test Build `date`" app
> org.open1x.Rollin.json
>
>
> It indicates that it is fetching the git repo, then errors out with the
> following error message :
>
>
> Failed to download sources: module Rollin: Not a gitlink tree: QtTestRunner

I have no idea what a gitlink tree is, but you can see what
flatpak-builder does when checking out if you pass it "-v".
Here is the final part:

Fetching git repo https://github.com/fbatogo/Rollin.git, ref refs/heads/master
FB: Running: git fetch -p --no-recurse-submodules --depth=1 -f origin
'+refs/heads/master:refs/heads/master'
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
FB: Running: git rev-parse master
FB: Running: git rev-parse --verify --quiet
20c132da9dbe761f05881b2d68ecf4a1ee5bb422:.gitmodules
FB: Running: git show 20c132da9dbe761f05881b2d68ecf4a1ee5bb422:.gitmodules
FB: Running: git ls-tree 20c132da9dbe761f05881b2d68ecf4a1ee5bb422 QtTestRunner
Failed to download sources: module Rollin: Not a gitlink tree: QtTestRunner

What f-b is doing is making a local mirror of the git repo and its
submodules. The .gitmodules look like this (run from
.flatpak-builder/git/https_github.com_fbatogo_Rollin.git):

$ git show 20c132da9dbe761f05881b2d68ecf4a1ee5bb422:.gitmodules
[submodule "QtTestRunner"]
        path = QtTestRunner
        url = https://github.com/fbatogo/QtTestRunner.git
[submodule "tests/QtTestRunner"]
        path = tests/QtTestRunner
        url = https://github.com/fbatogo/QtTestRunner.git

I'm not sure why its failing though. If i run the ls-tree command
separately it seems to succeed:

$ git ls-tree 20c132da9dbe761f05881b2d68ecf4a1ee5bb422 QtTestRunner
$ echo $?
0

Of course, its also not printing any module, whereas the other module does:

$ git ls-tree 20c132da9dbe761f05881b2d68ecf4a1ee5bb422 tests/QtTestRunner
040000 tree c05c960c416fd958a987c0a139dd4eecfa9adde9    tests/QtTestRunner

Honestly, I have no idea how here.. It might be a bug in how f-b does
the git mirroring, or just some state being wrong in your repo.


More information about the Flatpak mailing list