• Russ Cox's avatar
    cmd/go: warn about non-use of go.mod in legacy go get · ca642bb3
    Russ Cox authored
    It's important for a smooth transition for non-module users
    not to change operation in GOPATH/src by default in Go 1.11,
    even if go.mod exists in a downloaded dependency.
    
    Even so, users create go.mod and then are confused about
    why 'go get' commands seem to behave oddly, when in fact
    they are getting the old 'go get'.
    
    Try to split the difference by printing a warning in 'go get'
    when run in a tree that would normally be considered a
    module if only it were outside GOPATH/src.
    
    Change-Id: I55a1cbef127f3f36de54a8d7b93e1fc64bf0a708
    Reviewed-on: https://go-review.googlesource.com/124859Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
    ca642bb3
cfg.go 5.58 KB