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

use the vcs information from ReadBuildInfo in Go 1.18 #1381

Merged
merged 2 commits into from
Apr 10, 2022

Conversation

marten-seemann
Copy link
Contributor

For example, when built as a go-ipfs dependency, this would be: github.com/ipfs/go-ipfs@dfd01b1e1e8d31b148290e2b5dd51b7a676605fe (dirty).

@vyzo
Copy link
Contributor

vyzo commented Apr 10, 2022

@Stebalien ?

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

❤️

@Stebalien
Copy link
Member

github.com/ipfs/go-ipfs@dfd01b1e1e8d31b148290e2b5dd51b7a676605fe

I'd consider using a short hash (10 chars?).

@marten-seemann
Copy link
Contributor Author

Initializing daemon...
go-ipfs version: 0.13.0-dev-dfd01b1e1-dirty

go-ipfs only uses 9 characters. I'll just replicate that. I also like the -dirty suffix, I'll copy that as well.

@marten-seemann marten-seemann merged commit 2ad1d3d into master Apr 10, 2022
@marten-seemann marten-seemann deleted the use-build-info branch April 10, 2022 21:54
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.

3 participants