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