We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34ca66 commit 4a9bc42Copy full SHA for 4a9bc42
src/cmd/go/internal/modget/get.go
@@ -678,15 +678,6 @@ func runGet(cmd *base.Command, args []string) {
678
if *getD || len(pkgPatterns) == 0 {
679
return
680
}
681
- // TODO(golang.org/issue/32483): handle paths ending with ".go" consistently
682
- // with 'go build'. When we load packages above, we interpret arguments as
683
- // package patterns, not source files. To preserve that interpretation here,
684
- // we add a trailing slash to any patterns ending with ".go".
685
- for i := range pkgPatterns {
686
- if strings.HasSuffix(pkgPatterns[i], ".go") {
687
- pkgPatterns[i] += "/"
688
- }
689
690
work.BuildInit()
691
pkgs := load.PackagesForBuild(pkgPatterns)
692
work.InstallPackages(pkgPatterns, pkgs)
0 commit comments