aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_build_info_err.txt
blob: a6853b5c8691c715e3143b986b2cde67f36716c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This test verifies that line numbers are included in module import errors.
# Verifies golang.org/issue/34393.

go list -e -deps -f '{{with .Error}}{{.Pos}}: {{.Err}}{{end}}' ./main
stdout 'bad[/\\]bad.go:3:8: malformed import path "🐧.example.com/string": invalid char ''🐧'''

-- go.mod --
module m

go 1.13

-- main/main.go --
package main

import _ "m/bad"

func main() {}

-- bad/bad.go --
package bad

import _ "🐧.example.com/string"