From c59fdccd9f2222f26c2d19d4184579b9f5a9b3c1 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 26 Jul 2017 17:09:27 +0200 Subject: [PATCH] plugins: generate dummy main function for plugins to fix go#20312 https://github.com/golang/go/issues/20312 License: MIT Signed-off-by: Jakub Sztandera --- plugin/plugins/gen_main.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/plugins/gen_main.sh b/plugin/plugins/gen_main.sh index 6ea705cfe..f3e58f329 100755 --- a/plugin/plugins/gen_main.sh +++ b/plugin/plugins/gen_main.sh @@ -15,4 +15,8 @@ import ( ) var Plugins = $shortpkg.Plugins + +func main() { + panic("this is a plugin, build it as a plugin, this is here as for go#20312") +} EOL