Replying to Avatar Anthony Accioly

Good 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

Avatar
Diacone Frost 11mo ago

👀

nostr:nevent1qqszjex7ahlcu3vfsqjc552qvrvz4xyzzpf6ec5cvpwcqfr4duyq0hqpz4mhxue69uhkummnw3ezummcw3ezuer9wchsyg8wnkteuls5rz5lw3et47pde9sg9gx5y5dh0093wznwemynlt0lvspsgqqqqqqscdtdlf

Reply to this note

Please Login to reply.

Discussion

No replies yet.