# Plugins are not supported on all platforms.
[!buildmode:plugin] skip

go build -n testdep
! go build -buildmode=plugin testdep
stderr '-buildmode=plugin requires exactly one main package'

-- go.mod --
module testdep

go 1.16
-- testdep.go --
package p
