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

Allow gradual migration to go run #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qnighy
Copy link

@qnighy qnighy commented Jan 10, 2023

It is now a standard practice to simply invoke go run, like go run github.com/golang/mock/mockgen, without using go build. At the same time, there is still a need to manage tool versions in go.mod, and gex may be useful without go build.

Especially, grapi depends on gex and needs a proper way out from the current go build-based workflow.

This PR introduces a new option --no-bin that stops gex from generating //go:generate go build comment. This flag is tracked by a newly generated comment line //gex:nobin in the manifest.

This way the user can gradually migrate from the go build-based workflow to the go run-based workflow.

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

Successfully merging this pull request may close these issues.

1 participant