Johannes Kastl
Hi all,
kubescape (https://github.com/kubescape/kubescape) is using a git submodule to "include" git2go. This is being built in a separate step and needs its own dependencies.
Is there a way to vendor the "main" program and the one in the subdirectory using the go-modules service?
Adding a second stanza to the service file and using "subdir" results in a vendor.tar.gz only containing the files for the subdirectory.
It looks like the archive name is hard coded after quickly glancing over the source code [1]. So probably your second vendoring overwrites the first one. You could try to use different compression algorithms, then the file names would be different and it might work again.
Or do I need to build the subdirectory separately and pull it in via BuildRequires?
That's another option as well and probably a cleaner approach.
Cheers,
Dan
Footnotes:
[1] https://github.com/openSUSE/obs-service-go_modules/blob/2ed7720102f866a1e186...
--
Dan Čermák