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

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

View as plain text