Open alexandrevicenzi opened 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.
Is there any documentation for this behavior? or is this still pending creation?
Some packages required
go generate
, otherwisego 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.