Text file src/cmd/go/testdata/script/list_empty_importpath.txt

     1  ! go list all
     2  ! stderr 'panic'
     3  [!GOOS:windows] [!GOOS:solaris] [!GOOS:freebsd] [!GOOS:openbsd] [!GOOS:netbsd] stderr 'invalid import path'
     4  # #73976: Allow 'no errors' on Windows, Solaris, and BSD until issue
     5  # is resolved to prevent flakes. 'no errors' is printed by
     6  # empty scanner.ErrorList errors so that's probably where the
     7  # message is coming from, though we don't know how.
     8  [GOOS:windows] stderr 'invalid import path|no errors'
     9  [GOOS:solaris] stderr 'invalid import path|no errors'
    10  [GOOS:freebsd] stderr 'invalid import path|no errors'
    11  [GOOS:openbsd] stderr 'invalid import path|no errors'
    12  [GOOS:netbsd] stderr 'invalid import path|no errors'
    13  
    14  # go list produces a package for 'p' but not for ''
    15  go list -e all
    16  cmp stdout wantlist.txt
    17  -- wantlist.txt --
    18  example.com/e
    19  -- go.mod --
    20  module example.com/e
    21  
    22  go 1.25
    23  -- p.go --
    24  package p
    25  
    26  import ""

View as plain text