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"
)
