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

     1  ! go build
     2  stderr 'case-insensitive import collision'
     3  
     4  ! go mod vendor
     5  stderr 'case-insensitive import collision'
     6  
     7  -- foo.go --
     8  package main
     9  
    10  import (
    11  	_ "example.com/Foo"
    12  	_ "example.com/foo"
    13  )
    14  
    15  func main() {}
    16  -- go.mod --
    17  module play.ground
    18  
    19  go 1.14
    20  
    21  require (
    22  	example.com/foo v0.1.0
    23  	example.com/Foo v0.1.0
    24  )
    25  
    26  replace (
    27  	example.com/foo => ./foo
    28  	example.com/Foo => ./foo_alt
    29  )
    30  -- foo/go.mod --
    31  module example.com/foo
    32  -- foo/foo.go --
    33  package foo
    34  
    35  -- foo_alt/go.mod --
    36  module example.com/Foo
    37  -- foo_alt/foo.go --
    38  package Foo

View as plain text