]> Cypherpunks.ru repositories - gostls13.git/commit
cmd: ignore the directory named go.mod
authorLeonardo Comelli <leonardo.comelli@gmail.com>
Tue, 19 Mar 2019 03:53:04 +0000 (03:53 +0000)
committerBryan C. Mills <bcmills@google.com>
Thu, 28 Mar 2019 21:59:51 +0000 (21:59 +0000)
commitfa5dbd06e57475a6b788ebf0468c132ec9cd77fc
tree7921f8da175ea05b35af7cc244dc2387cd760b09
parent93af67783796a48b3f59bd969dc0c528c37571ec
cmd: ignore the directory named go.mod

The existing implementation does not check in all cases whether go.mod is a regular file.

Fixes #30788

Change-Id: I6d140545c3cfada651612efd5bee2fbdcb747ca7
GitHub-Last-Rev: 4a9b251e378d9d7cc8768d395c360d3542fc9bc6
GitHub-Pull-Request: golang/go#30830
Reviewed-on: https://go-review.googlesource.com/c/go/+/167393
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/search.go
src/cmd/go/internal/search/search.go
src/cmd/go/testdata/script/mod_dir.txt [new file with mode: 0644]