Anyone using obs-service-go_modules with upstream having multiple go.mod files?
Hi Jeff, hi all, apparently kubescape (https://github.com/armosec/kubescape) reorganized their repository structure and moved/split up the go.mod file from the root of the repository to some directories in "core" and "cmd". So the vendoring approach currently being used in the package does no longer work, as only one of the go.mod files will be found by the obs-service-go_modules.
https://build.opensuse.org/package/show/devel:kubic/kubescape
INFO:obs-service-go_modules:Using go.mod found at /home/Buildservice/Branches/Branch_devel_kubic/kubescape/tmp_35r3omj.go_modules.service/kubescape-2.0.150/core/go.mod
I found no hints in the docs, so I guess there is no way to tell the service to use more than one go.mod? Or to tell it which one to use? Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Hi Johannes, Johannes Kastl <kastl@b1-systems.de> writes:
Hi Jeff, hi all,
apparently kubescape (https://github.com/armosec/kubescape) reorganized their repository structure and moved/split up the go.mod file from the root of the repository to some directories in "core" and "cmd".
So the vendoring approach currently being used in the package does no longer work, as only one of the go.mod files will be found by the obs-service-go_modules.
https://build.opensuse.org/package/show/devel:kubic/kubescape
INFO:obs-service-go_modules:Using go.mod found at /home/Buildservice/Branches/Branch_devel_kubic/kubescape/tmp_35r3omj.go_modules.service/kubescape-2.0.150/core/go.mod
I found no hints in the docs, so I guess there is no way to tell the service to use more than one go.mod? Or to tell it which one to use?
Afaik this is not yet possible: https://github.com/openSUSE/obs-service-go_modules/issues/1 Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nuremberg Germany (HRB 36809, AG Nürnberg) Managing Director/Geschäftsführer: Ivo Totev
Hi Dan, On 28.03.22 at 14:49 Dan Čermák wrote:
I found no hints in the docs, so I guess there is no way to tell the service to use more than one go.mod? Or to tell it which one to use?
Afaik this is not yet possible: https://github.com/openSUSE/obs-service-go_modules/issues/1
Thanks for the link. Meh. OK, then I'll need to come up with another solution for this. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Johannes Kastl <kastl@b1-systems.de> writes:
Hi Dan,
On 28.03.22 at 14:49 Dan Čermák wrote:
I found no hints in the docs, so I guess there is no way to tell the service to use more than one go.mod? Or to tell it which one to use?
Afaik this is not yet possible: https://github.com/openSUSE/obs-service-go_modules/issues/1
Thanks for the link. Meh.
OK, then I'll need to come up with another solution for this.
Well, actually you don't, someone else already made a PR for that: https://github.com/openSUSE/obs-service-go_modules/pull/15 Now someone just needs to review and merge this. Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nuremberg Germany (HRB 36809, AG Nürnberg) Managing Director/Geschäftsführer: Ivo Totev
Hi Jeff, can you please check the PR mentioned below and please merge it? Or can someone else check it and merge? Not sure who has permissions on that repository except you? Kind Regards, Johannes On 29.03.22 at 09:57 Dan Čermák wrote:
Johannes Kastl <kastl@b1-systems.de> writes:
On 28.03.22 at 14:49 Dan Čermák wrote:
I found no hints in the docs, so I guess there is no way to tell the service to use more than one go.mod? Or to tell it which one to use?
Afaik this is not yet possible: https://github.com/openSUSE/obs-service-go_modules/issues/1
Well, actually you don't, someone else already made a PR for that: https://github.com/openSUSE/obs-service-go_modules/pull/15
Now someone just needs to review and merge this.
-- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (2)
-
Dan Čermák
-
Johannes Kastl