...

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

Documentation: cmd/go/testdata/script

     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
     8go mod verify
     9
    10-- go.work --
    11go 1.21
    12
    13use (
    14    ./a
    15    ./b
    16)
    17-- a/go.mod --
    18module hexample.com/a // important for test that module name sorts after 'go'
    19
    20go 1.21
    21-- b/go.mod --
    22module hexample.com/b // important for test that module name sorts after 'go'
    23
    24go 1.21

View as plain text