github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_build_info_err.txt (about)

     1  # This test verifies that line numbers are included in module import errors.
     2  # Verifies golang.org/issue/34393.
     3  
     4  go list -e -deps -f '{{with .Error}}{{.Pos}}: {{.Err}}{{end}}' ./main
     5  stdout 'bad[/\\]bad.go:3:8: malformed module path "🐧.example.com/string": invalid char ''🐧'''
     6  
     7  -- go.mod --
     8  module m
     9  
    10  go 1.13
    11  
    12  -- main/main.go --
    13  package main
    14  
    15  import _ "m/bad"
    16  
    17  func main() {}
    18  
    19  -- bad/bad.go --
    20  package bad
    21  
    22  import _ "🐧.example.com/string"