Flatpak Builder --keep-build-dirs bug?

Olof Nord olof.nord at tutanota.com
Sat Feb 12 20:46:06 UTC 2022


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/20220212/8c61e774/attachment.htm>


More information about the Flatpak mailing list