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

revive: update to 1.2.0. #36505

Merged
merged 1 commit into from Apr 10, 2022
Merged

revive: update to 1.2.0. #36505

merged 1 commit into from Apr 10, 2022

Conversation

r-ricci
Copy link
Contributor

@r-ricci r-ricci commented Apr 3, 2022

Testing the changes

  • I tested the changes in this PR: YES

revision=1
build_style=go
go_ldflags="-X main.version=$version -X main.builtBy=xbps"
go_ldflags="-X github.com/mgechev/revive/cli.version=$version"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
go_ldflags="-X github.com/mgechev/revive/cli.version=$version"
go_ldflags="-X cli.version=$version"

would this work?

Copy link
Contributor Author

@r-ricci r-ricci Apr 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, mgechev/revive@d2ab719.
I also removed builtBy because it's unused unless build time is also set https://github.com/mgechev/revive/blob/31fbdb18332df7d1db76f8223e5dfb0285cd46aa/cli/main.go#L151.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I misread your comment. I don't know if the suggestion would work, I have to test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work, it prints version (devel).

@paper42 paper42 merged commit 8eeec0d into void-linux:master Apr 10, 2022
@r-ricci r-ricci deleted the revive branch April 10, 2022 13:43
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.

None yet

2 participants