Removing architecture attribute from plugin struct, adding switch statement for GOARCH mapping

This commit is contained in:
cbrgm 2018-08-08 21:41:01 +02:00
commit b7ceb78f28
3 changed files with 18 additions and 6 deletions

View file

@ -111,7 +111,6 @@ func run(c *cli.Context) error {
Theme: c.String("theme"),
Url: c.String("url"),
},
Architecture: os.Getenv("PLUGIN_HUGO_ARCH"),
BuildInVersion: os.Getenv("PLUGIN_HUGO_SHIPPED_VERSION"),
}
return plugin.Exec()