-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Unable to install lexer generator #393
Comments
Also
|
But why limit installation and execution? Virtually any Go module is available for execution with a simple 'go run' command. For example it would be nice to have something like: //go:generate go run github.com/alecthomas/participle/v2/cmd/[email protected] gen lexer ... |
Because it complicates the release process, which is currently: tag a commit. The command is a separate module to avoid polluting Participle's dependencies. Without the replace, a release would entail updating the cmd's go.mod file to point to the future version, committing it, then tagging that commit with that version. |
The idea is to completely remove cmd/participle/go.mod, not just the replace directive in it. This way, the release process will not change. In my opinion, the question boils down to not having unnecessary dependencies. I believe that having the ability to use the utility via go run / go install is more important. Besides, Go binary does not include unused dependencies. |
Well, we'll agree to disagree. |
The problem caused by additional
cmd/participle/go.mod
file:Also
scripts/participle
should be updated, required module version is missing:The text was updated successfully, but these errors were encountered: