Skip to content

Commit 4a9bc42

Browse files
committed
Remove unnecessary fix for modules ending in '.go'
1 parent a34ca66 commit 4a9bc42

File tree

1 file changed

+0
-9
lines changed
  • src/cmd/go/internal/modget

1 file changed

+0
-9
lines changed

src/cmd/go/internal/modget/get.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -678,15 +678,6 @@ func runGet(cmd *base.Command, args []string) {
678678
if *getD || len(pkgPatterns) == 0 {
679679
return
680680
}
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-
}
690681
work.BuildInit()
691682
pkgs := load.PackagesForBuild(pkgPatterns)
692683
work.InstallPackages(pkgPatterns, pkgs)

0 commit comments

Comments
 (0)