openSUSE / obs-service-go_modules

OBS Source Service to download, verify, and vendor Go module dependency sources
GNU General Public License v2.0
19 stars 18 forks source link

Add support for go generate command #13

Open alexandrevicenzi opened 3 years ago

alexandrevicenzi commented 3 years ago

Some packages required go generate, otherwise go mod vendor will fail trying to find dependencies.

One example is Traefik 2.x.

If this is a good idea, I can submit a patch.

jfkw commented 3 years ago

Thanks for reporting the issue, and pointing out the traefik package use of go generate in offline discussion. We will use traefik as a test case to document go generate behavior with a populated vendor/ directory in the offline OBS environment. The primary objective will be to prevent online access during package build and ensure go generate and go build use the same dependency set, or augment the dependencies if go generate requires different dependencies. If there are unavoidable issues there or indications of repeated boilerplate we can then support a generate step in this source service.

alexandrevicenzi commented 3 years ago

Is there any documentation for this behavior? or is this still pending creation?