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

     1  # Test case that makes sure we print a nice error message
     2  # instead of the generic "unknown godebug" error message
     3  # for removed GODEBUGs.
     4  
     5  ! go list
     6  stderr '^go.mod:3: use of removed godebug "x509sha1", see https://go.dev/doc/godebug#go-124$'
     7  
     8  -- go.mod --
     9  module example.com/bar
    10  
    11  godebug x509sha1=1
    12  

View as plain text