aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_init_glide.txt
blob: a351a6ae4bce792c59bd25f7eacb9cf9413c5d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[!net] skip
[!exec:git] skip

env GO111MODULE=on
env GOPROXY=direct

# Regression test for golang.org/issue/32161:
# 'go mod init' did not locate tags when resolving a commit to a pseudo-version.
go mod init x
cmpenv go.mod go.mod.out

-- main.go --
package main

import (
	_ "github.com/rsc/legacytest"
)

func main() {}

-- glide.lock --
imports:
- name: github.com/rsc/legacytest
  version: fb3c628075e32f7f3c248a3abbdafd69ad6e21e1

-- glide.yaml --
package: x

-- go.mod.out --
module x

go $goversion

require github.com/rsc/legacytest v1.1.0-pre.0.20180717164849-fb3c628075e3