...
Run Format

Text file src/cmd/go/testdata/script/mod_get_tool_issue74035.txt

Documentation: cmd/go/testdata/script

     1# Regression test for https://go.dev/issue/74035.
     2go get -tool example.com/foo/cmd/a example.com/foo/cmd/b
     3cmp go.mod go.mod.want
     4
     5-- go.mod --
     6module example.com/foo
     7go 1.24
     8-- go.mod.want --
     9module example.com/foo
    10
    11go 1.24
    12
    13tool (
    14	example.com/foo/cmd/a
    15	example.com/foo/cmd/b
    16)
    17-- cmd/a/a.go --
    18package a
    19
    20func main() {}
    21
    22-- cmd/b/b.go --
    23package b
    24
    25func main() {}

View as plain text