Do we need patch version in x libs?

62 views
Skip to first unread message

Marcondes Viana de Oliveira Junior

unread,
Mar 6, 2026, 9:04:12 AM (3 days ago) Mar 6
to golang-nuts
Hi,

Does it really need to use the specific patch version?


go 1.25.0

This sometimes is annoying if not really necessary because if I'm importing it in my project go `mod tidy` will change from `go 1.25` to `go 1.25.0` even if I have (for example) go 1.25.6 in my machine.

Without the patch version it's always build with the latest version since I use `golang:1.25` Docker directive.

Not sure if I'm doing something wrong or it's not really necessary to pay attention to the patch version when build the application or it doesn't mater and will build 1.25.6 (version just as example since can change).

If it's ok would be nice to remove it from libs, and specify in services only when we have a case.

Sean Liao

unread,
Mar 6, 2026, 9:33:39 AM (3 days ago) Mar 6
to golang-nuts
If your compiler version is newer than the go version in the go.mod,
then the compiler version will be used.

"1.25" means the in development version (1.25 < 1.25rc1 < 1.25rc2 <
1.25.0 < 1.25.1).
It doesn't mean the newest version of go, it's the oldest.

Go's support policy covers starts when the .0 is released, that's why
golang.org/x uses it.

- sean
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/2d8c69d8-02e8-4b93-924a-7f794b204827n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages