-
Notifications
You must be signed in to change notification settings - Fork 277
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
Application version support #381
Comments
Maybe |
That would be helpful. I just want to see in my pipeline which version I'm using and this would be enough. |
+1 golint doesnt provide any information and i was hoping for this tool to provide such information on top of golint |
@mgechev I also need --version for Mega-Linter , please :) |
I can do this if this PR (#503) got approved/released, since goreleaser already provide these info from git as ldflags during build. it is just a matter of adding the following vars to var (
version = "dev"
commit = "none"
date = "unknown"
builtBy = "unknown"
)
// in the --version or --help command handler
fmt.Sprintf(
`Current revive Version %v Commit %v, Built @%v By %v.`,
version,
commit,
date,
builtBy,
), if you're building revive manually, then it is your responsibility to provide the version during build (eg. |
yeah, i will take care of this request then @chavacava |
Hi, thanks for this great tool.
Would be possible to add application version support in standard way? I mean to add
--version
CLI option which shows revive version.The text was updated successfully, but these errors were encountered: