...

Text file src/cmd/go/testdata/script/build_plugin_non_main.txt

Documentation: cmd/go/testdata/script

     1# Plugins are not supported on all platforms.
     2[!buildmode:plugin] skip
     3
     4go build -n testdep
     5! go build -buildmode=plugin testdep
     6stderr '-buildmode=plugin requires exactly one main package'
     7
     8-- go.mod --
     9module testdep
    10
    11go 1.16
    12-- testdep.go --
    13package p

View as plain text