1env GO111MODULE=on 2 3! go list -mod=mod -deps use.go 4stderr '^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$' 5 6-- go.mod -- 7module m 8 9go 1.14 10 11-- use.go -- 12package use 13 14import ( 15 _ "example.com/missingpkg/deprecated" 16 _ "example.com/usemissingpre" 17)