github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/mod_bad_domain.txt (about)

     1  env GO111MODULE=on
     2  
     3  # explicit get should report errors about bad names
     4  ! go get appengine
     5  stderr 'malformed module path "appengine": missing dot in first path element'
     6  ! go get x/y.z
     7  stderr 'malformed module path "x/y.z": missing dot in first path element'
     8  
     9  # build should report all unsatisfied imports,
    10  # but should be more definitive about non-module import paths
    11  ! go build ./useappengine
    12  stderr 'cannot find package'
    13  ! go build ./usenonexistent
    14  stderr 'cannot find module providing package nonexistent.rsc.io'
    15  
    16  # go mod vendor and go mod tidy should ignore appengine imports.
    17  rm usenonexistent/x.go
    18  go mod tidy
    19  go mod vendor
    20  
    21  -- go.mod --
    22  module x
    23  
    24  -- useappengine/x.go --
    25  package useappengine
    26  import _ "appengine" // package does not exist
    27  -- usenonexistent/x.go --
    28  package usenonexistent
    29  import _ "nonexistent.rsc.io" // domain does not exist