1 [!net] skip
2 [!exec:git] skip
3
4 env GO111MODULE=on
5 env GOPROXY=direct
6 env GOSUMDB=
7
8 # Regression test for golang.org/issue/32161:
9 # 'go mod init' did not locate tags when resolving a commit to a pseudo-version.
10 go mod init x
11 cmpenv go.mod go.mod.out
12
13 -- main.go --
14 package main
15
16 import (
17 _ "github.com/rsc/legacytest"
18 )
19
20 func main() {}
21
22 -- glide.lock --
23 imports:
24 - name: github.com/rsc/legacytest
25 version: fb3c628075e32f7f3c248a3abbdafd69ad6e21e1
26
27 -- glide.yaml --
28 package: x
29
30 -- go.mod.out --
31 module x
32
33 go $goversion
34
35 require github.com/rsc/legacytest v1.1.0-pre.0.20180717164849-fb3c628075e3
36
View as plain text