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

! go list -mod=mod -deps use.go
stderr '^use.go:4:2: package example.com/missingpkg/deprecated provided by example.com/missingpkg at latest version v1.0.0 but not at required version v1.0.1-beta$'

-- go.mod --
module m

go 1.14

-- use.go --
package use

import (
	_ "example.com/missingpkg/deprecated"
	_ "example.com/usemissingpre"
)