-
Notifications
You must be signed in to change notification settings - Fork 607
allow version flag to work when built with goroleaser #389
Comments
@codyoss what are the commands that you use to get mockgen? This is what I get:
My go version:
|
go build
Sorry, you are right that does work. The use case I ran into was for us publishing prebuilt binaries. Updated initial steps. Thoughts? |
What are the steps that you use to prebuild binaries? I will check if we can build in a way that it includes the module info. As a sidenote: As I mentioned in the description of #362, the best way to support prebuilt binaries would be to combine the current approach with build flags ( |
Good point on the ldflags. That would work fine. I will using goreleaser to make the binaries. That does allow for custom flags to be sent through. |
@codyoss I will check the goroleaser. It would be nice if we mitigated a need for build flags |
go build
Actual behavior A clear and concise description of what the bug is.
When building locally unable to retrieve a version. This makes it hard should we want to publish pre-built binaries.
Expected behavior A clear and concise description of what you expected to
happen.
mockgen -version
outputs version info.The text was updated successfully, but these errors were encountered: