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

On Fri, Mar 6, 2026 at 2:04 PM Marcondes Viana de Oliveira Junior
<[email protected]> wrote:
>
> Hi,
>
> Does it really need to use the specific patch version?
>
> For example https://cs.opensource.google/go/x/net/+/master:go.mod uses 
> (go,mod):
>
> 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.
>
> --
> 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 [email protected].
> To view this discussion visit 
> https://groups.google.com/d/msgid/golang-nuts/2d8c69d8-02e8-4b93-924a-7f794b204827n%40googlegroups.com.

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAGabyPpLdmadHB1-J6pk5AQhVENKnPUGjSUu3XdxGVHbBpmFhQ%40mail.gmail.com.

Reply via email to