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

"git" type source works only as the first source #16

Open
alexlarsson opened this issue Aug 25, 2017 · 2 comments
Open

"git" type source works only as the first source #16

alexlarsson opened this issue Aug 25, 2017 · 2 comments

Comments

@alexlarsson
Copy link
Member

From @Jehan on February 13, 2017 1:40

Trying to work around another bug of flatpak, I tried to add a "script" source and I put it before the "git" source in the list. When it came to building the module, I got:

========================================================================
Building module gimp in /home/jehan/gimp/build/flatpak/.flatpak-builder/build/gimp-8

fatal: destination path '/home/jehan/gimp/build/flatpak/.flatpak-builder/build/gimp-8' already exists and is not an empty directory.
Error: module gimp: Child process exited with code 128

I understand the issue: flatpak tries to clone the git directory which requires no directory or an empty one. I would propose to either make it possible (clone in a temporary directory and move all files after for instance), or at least write down in the documentation that if a module has multiple source, and among them there is a git source, it has to be first in the list.

Copied from original issue: flatpak/flatpak#555

@alexlarsson
Copy link
Member Author

Having multiple git sources works, it just that the way flatpak-builder works the sources are extracted, in the specified order, inside the build directory. Two git checkouts cannot be in the same directory (because the .git directory would collide), so you have to define "dest": "some/subdir" in one or both of the git repo sources to check it out in separate directories.

@alexlarsson
Copy link
Member Author

Although you're right in that if you mix a git repo with say an archive, then it would work without dest if you had the right order.

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