Flatpak Builder --keep-build-dirs bug?
Olof Nord
olof.nord at tutanota.com
Sun Feb 13 00:34:55 UTC 2022
Quick followup on this:
With the 21.08 runtime-version of the freedesktop Platform, a more recent go version is provided.
The problem in this case was not the flatpak-builder flag, but the preparation required to use the go-get Flathub dependency generator.
I opened a PR to improve the go-get documentation here, feedback is much appreciated.
https://github.com/flatpak/flatpak-builder-tools/pull/257
Cheers,Olof Nord
12 Feb 2022, 21:46 by olof.nord at tutanota.com:
> Hello Flatpak devs!
>
> I am working on a Flatpak go application, for which I want to generate the> source list.
> This as to allow publishing on Flathub.
>
> Looking at the flatpak-builder-tools repo, there is a flatpak-go-get-generator.py [1] script prepared which seems to be a good candidate for this task.
>
> This tool requires the build-dirs from a build to work: and that brings me to my question.
>
> Running `flatpak-builder --keep-build-dirs` does in my case seemingly not save the build dir, but only the "pkg" and the "bin" dirs.
>
> Here is what I use:
>
> flatpak-builder build axolotl-download-manifest.yml--keep-build-dirs --force-clean
>
> tree -L 2 .flatpak-builder/build/
> .flatpak-builder/build/
> ├── axolotl -> axolotl-1
> ├── axolotl-1
> │ ├── bin
> │ └── pkg
> ├── axolotl-2
> │ ├── bin
> │ └── pkg
> ├── axolotl-3
> ├── axolotl-4
> └── axolotl-5
> ├── bin
> └── pkg
>
> 12 directories, 0 files
>
> Looking at the /build directory, there are also no src files there:
>
> tree -L 1 build
> build
> ├── files
> ├── metadata
> └── var
>
> What do I need to do to actually keep the build directories?
> Are there any other tools/methods to generate the source list for a golang application?
> Many thanks in beforehand!
>
> Cheers,
> Olof Nord
>
> [1] > https://github.com/flatpak/flatpak-builder-tools/tree/master/go-get
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20220213/f8b6dc59/attachment.htm>
More information about the Flatpak
mailing list