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

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

View as plain text