diacone on Nostr: 👀 ...
👀
quoting nevent1q…tdlfGood evening, folks. TIL that Go 1.24.0 has updated its runtime/debug package to automatically stamp apps with a version or pseudo-version at build time based on VCS information.
No need for complex build pipeline steps to inject version constants anymore. Just tag a release appropriately in Git and use debug.BuildInfo.Main.Version in your code.
https://github.com/golang/go/issues/50603#issuecomment-2181188811
This is a great feature that many people may have missed in the release notes:
https://tip.golang.org/doc/go1.24#:~:text=information.-,The,changes.
#go #golang
-
@anthony@accioly.social 🔗 https://accioly.social/users/anthony/statuses/114020609182575582