When you add a tool dependency, you also get a require directicve with the version. The version is specified there. https://go.dev/doc/modules/managing-dependencies#tools
On Wed, Aug 13, 2025, 16:22 Miki Tebeka <miki.teb...@gmail.com> wrote: > Hi, > > Does anyone know why the go.mod "tool" directive do not allow specifying > tool version? > > This is OK > tool github.com/caarlos0/svu > > This is not OK > tool github.com/caarlos0/svu@v3.2.3 > > > Thanks, > Miki > > -- > 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/ead92fb2-0240-48f0-8b76-e7ede97be1ffn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/ead92fb2-0240-48f0-8b76-e7ede97be1ffn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CADgY6e9shV6daPThkkn0W7XYJQj83hMSHKsb7ARZ4KZD3kGaXQ%40mail.gmail.com.