...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=off
     2
     3! go build canonical/d
     4stderr '^canonical[/\\]b[/\\]b.go:3:8: non-canonical import path "canonical/a/": should be "canonical/a"$'
     5
     6-- canonical/a/a.go --
     7package a
     8
     9import _ "c"
    10-- canonical/b/b.go --
    11package b
    12
    13import _ "canonical/a/"
    14-- canonical/a/vendor/c/c.go --
    15package c
    16-- canonical/d/d.go --
    17package d
    18
    19import _ "canonical/b"

View as plain text