blob: bd2508a3e38d2d5dfd52fac94199b60fe0e6158b [file] [log] [blame]
# Go should indicate the version the module requires when a standard library
# import is missing. See golang.org/issue/48966.
! go build .
stderr '^main.go:3:8: package nonexistent is not in GOROOT \(.*\)$'
stderr '^note: imported by a module that requires go 1.99999$'
-- go.mod --
module example
go 1.99999
-- main.go --
package main
import _ "nonexistent"
func main() {}