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

     1  # Issue #44810: go get should not produce unnecessarily repetitive
     2  # "invalid version" error messages.
     3  
     4  go mod init m
     5  
     6  # A version string containing a slash should produce a concise error
     7  # without repeating the version information multiple times.
     8  ! go get example.com/mod@branch/with/slash
     9  stderr '^go: example.com/mod@branch/with/slash: invalid version: disallowed version string$'
    10  ! stderr 'version "branch/with/slash" invalid'
    11  

View as plain text