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

     1  # Regression test for Issue #62663: we would filter out the toolchain and
     2  # main modules from the build list incorrectly, leading to the workspace
     3  # modules being checked for correct sums. Specifically this would happen when
     4  # the module name sorted after the virtual 'go' version module name because
     5  # it could not get chopped off when we removed the MainModules.Len() modules
     6  # at the beginning of the build list and we would remove the go module instead.
     7  
     8  go mod verify
     9  
    10  -- go.work --
    11  go 1.21
    12  
    13  use (
    14      ./a
    15      ./b
    16  )
    17  -- a/go.mod --
    18  module hexample.com/a // important for test that module name sorts after 'go'
    19  
    20  go 1.21
    21  -- b/go.mod --
    22  module hexample.com/b // important for test that module name sorts after 'go'
    23  
    24  go 1.21

View as plain text