Event JSON
{
"id": "2964deedff8e458980258a514060d82a98821053ace298605d8024756f0807dc",
"pubkey": "ee9d979e7e1418a9f7472baf82dc96082a0d4251b77bcb170a6ecec93fadff64",
"created_at": 1739816482,
"kind": 1,
"tags": [
[
"t",
"go"
],
[
"t",
"golang"
],
[
"r",
"debug.BuildInfo.Main.Version"
],
[
"r",
"https://github.com/golang/go/issues/50603#issuecomment-2181188811"
],
[
"r",
"https://tip.golang.org/doc/go1.24#:~:text=information.-,The,changes."
],
[
"r",
"anthony@accioly.social"
],
[
"r",
"https://accioly.social/users/anthony/statuses/114020609182575582"
]
],
"content": "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.\n\nNo 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.\n\nhttps://github.com/golang/go/issues/50603#issuecomment-2181188811\n\nThis is a great feature that many people may have missed in the release notes:\n\nhttps://tip.golang.org/doc/go1.24#:~:text=information.-,The,changes.\n\n#go #golang\n\n-\n@anthony@accioly.social 🔗 https://accioly.social/users/anthony/statuses/114020609182575582",
"sig": "32e48f54439888e882beb19dba65430a948eb1b600e7f4926f988e20b7895004f4ed5c6875ef0566a95cfca92e0cf7fe8745114a5c978002c5bc7a159309bb6f"
}