Git source files and No such file or directory

Hi,
I’m working on the beta branch of an application I package,
one of the steps downloads a git repository and installs the content: https://github.com/flathub/com.icanblink.blink/blob/beta/com.icanblink.blink.json#L485

This step works fine when I flatpak-builder on my own pc, but doesn’t work on flathub.
See https://flathub.org/builds/#/builders/32/builds/51511

Can anyone shed some light onto it?
Thanks

The error from the log is:
bash: get_dependencies.sh: No such file or directory

First, you don’t need to prepend bash to execute a shell file, just put the file path directly, like can be seen here.

So, try with "get_dependencies.sh"

If failed, try with "./get_dependencies.sh"

If still don’t work, you can download the file directly from git as a individual "file" like can be seen here

Hopefully some of these options will work for you. Let us know!

"get_dependencies.sh" doesn’t work at all, not even on my pc.
"./get_dependencies.sh" works on my pc but doesn’t work on flathub.

I could try to download the file, but what’s the appropriate channel to flag the issue with flathub? This is most likely a bug in the worker servers that should be addressed.

There is no network access during the build, so I don’t see how this can work on the builders.

That file is contained in the git repository downloaded with this json:
{
“type”: “git”,
“url”: “https://github.com/syco/python3-sipsimple.git”,
“branch”: “master”
},

so it doesn’t need network access, am I missing something here?
What is the right way to download sources from a git repository?

This seems to be your problem:

(flatpak-builder:1135937): flatpak-builder-WARNING **: 14:56:24.915: Invalid source: No slashes allowed in dest-filename

Modules Script Failing on Flathub, worked fine 3 months ago
flatpak-builder 1.0.14 breaks build of org.libreoffice.LibreOffice, empty /run/build/libreoffice

You have to remove the relative path from dest-filename:

{
  "type": "file",
  "path": "sources/pjproject-2.10.tar.gz",
  "dest-filename": "deps/2.10.tar.gz"
},

becomes

{
  "type": "file",
  "path": "sources/pjproject-2.10.tar.gz",
  "dest": "deps"
  "dest-filename": "2.10.tar.gz"
},