Hello,

We set both go and toolchain in go.mod file, see below. But when executing 
"go mod tidy" command, it automatically changes "go 1.23" to "go 1.23.0". 
The local go version is 1.23.4 (darwin/arm64). 
see.  
https://github.com/etcd-io/etcd-operator/blob/7e8cf49ea8fef6f108084fb55cb437887dc71c3a/tools/mod/go.mod#L3-L5

go 1.23

toolchain go1.23.4

When I execute "go mod tidy" under another project (etcd) on the same 
machine with exactly the same go version, it doesn't automatically make the 
same change, 
see 
https://github.com/etcd-io/etcd/blob/ce4b4e533d037d8247843cefe2ba4c69cd109097/go.mod#L3-L5

Could anyone please explain the reason for the different behaviour? 

Regards,
Benjamin

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/a1158eda-abbc-4aaf-9ffe-95d978e35dc4n%40googlegroups.com.

Reply via email to