aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_convert_glide.txt
blob: 9f1fff51bf44643db8320aa90cde261a0318ccb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
env GO111MODULE=on

# We should not create a go.mod file unless the user ran 'go mod init' explicitly.
# However, we should suggest 'go mod init' if we can find an alternate config file.
cd $WORK/test/x
! go list .
stderr 'found glide.lock in .*[/\\]test'
stderr '\s*cd \.\. && go mod init'

# The command we suggested should succeed.
cd ..
go mod init
go list -m all
stdout '^m$'

-- $WORK/test/glide.lock --
-- $WORK/test/x/x.go --
package x // import "m/x"