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

     1  # go mod verify should not try to verify the workspace modules.
     2  # This is a test for #54372.
     3  
     4  go mod verify
     5  stdout 'all modules verified'
     6  ! stderr .
     7  
     8  -- go.work --
     9  go 1.21
    10  
    11  use (
    12      ./a
    13      ./b
    14      ./c
    15      ./d
    16  )
    17  -- a/go.mod --
    18  module example.com/a
    19  
    20  go 1.21
    21  
    22  require rsc.io/quote v1.1.0
    23  -- a/a.go --
    24  package a
    25  import _ "rsc.io/quote"
    26  -- b/go.mod --
    27  module example.com/b
    28  
    29  go 1.21
    30  -- c/go.mod --
    31  module example.com/c
    32  
    33  go 1.21
    34  -- d/go.mod --
    35  module example.com/d
    36  
    37  go 1.21

View as plain text