> On 25 Feb 2021, at 01.40, Peng Yu <pengyu...@gmail.com> wrote:
>
> Hi,
>
> `GO111MODULE=auto go get` does not always work. What causes this bug? Thanks.
>
> $ GO111MODULE=auto go get golang.org/x/net/html
> $ GO111MODULE=auto go get rsc.io/quote
> /Users/xxx/go/src/rsc.io/quote/quote.go:8:8: code in directory
> /Users/xxx/go/src/rsc.io/quote/v3 expects import "rsc.io/quote"
>
https://golang.org/ref/mod#mod-commands
If you run the "go get" command on directory that does not contains "go.mod"
file, its basically equal to "GO111MODULE=off go get", without module aware.
Where do you get the above commands? rsc.io/quote is an example of repository
to explain of how Go module works and not works if run without Go module-aware.
https://github.com/golang/go/issues/26367
--
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 on the web visit
https://groups.google.com/d/msgid/golang-nuts/03C1A4FC-E82A-48D4-B93E-BC235C28876F%40gmail.com.