Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for go generate command #13

Open
alexandrevicenzi opened this issue Apr 29, 2021 · 2 comments
Open

Add support for go generate command #13

alexandrevicenzi opened this issue Apr 29, 2021 · 2 comments

Comments

@alexandrevicenzi
Copy link

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
Copy link
Collaborator

jfkw commented May 25, 2021

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants