aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_plugin_non_main.txt
blob: 996d87d96129d13f8086f10e917ff831ec34df35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Plugins are only supported on linux,cgo and darwin,cgo.
[!linux] [!darwin] skip
[!cgo] skip

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

-- testdep/p1/p1.go --
package p1
-- testdep/p1/p1_test.go --
package p1

import _ "testdep/p2"
-- testdep/p2/p2.go --
package p2