Skip to content

Commit b34b0aa

Browse files
XiaodongLoongBryan C. Mills
authored andcommitted
cmd/go: skip TestScript/build_plugin_non_main on platforms that do not support -buildmode=plugin
Fixes #42474 Change-Id: I1550b44b92cd272854e2f17493245a14e3d39f41 GitHub-Last-Rev: 948d017 GitHub-Pull-Request: #42475 Reviewed-on: https://go-review.googlesource.com/c/go/+/268737 Reviewed-by: Bryan C. Mills <[email protected]> Reviewed-by: Jay Conrod <[email protected]> Trust: Jay Conrod <[email protected]>
1 parent c167635 commit b34b0aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Plugins are only supported on linux,cgo (!riscv64) and darwin,cgo.
2-
[!linux] [!darwin] skip
3-
[linux] [riscv64] skip
4-
[!cgo] skip
1+
# Plugins are not supported on all platforms.
2+
[!buildmode:plugin] skip
53

64
go build -n testdep
75
! go build -buildmode=plugin testdep

0 commit comments

Comments
 (0)