...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=off
     2
     3# Issue 17119: Test more duplicate load errors.
     4! go build dupload
     5! stderr 'duplicate load|internal error'
     6stderr 'dupload/vendor/p must be imported as p'
     7
     8-- dupload/dupload.go --
     9package main
    10
    11import (
    12	_ "dupload/p2"
    13	_ "p"
    14)
    15
    16func main() {}
    17-- dupload/p/p.go --
    18package p
    19-- dupload/p2/p2.go --
    20package p2
    21
    22import _ "dupload/vendor/p"
    23-- dupload/vendor/p/p.go --
    24package p

View as plain text