universe: go: do not hardcode default platform
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
d79de11fa8
commit
f90b1ad079
@ -13,10 +13,10 @@ import (
|
||||
package: *"." | string
|
||||
|
||||
// Target architecture
|
||||
arch: *"amd64" | string
|
||||
arch?: string
|
||||
|
||||
// Target OS
|
||||
os: *"linux" | string
|
||||
os?: string
|
||||
|
||||
// Build tags to use for building
|
||||
tags: *"" | string
|
||||
@ -30,8 +30,12 @@ import (
|
||||
"source": source
|
||||
"env": {
|
||||
env
|
||||
GOOS: os
|
||||
GOARCH: arch
|
||||
if os != _|_ {
|
||||
GOOS: os
|
||||
}
|
||||
if arch != _|_ {
|
||||
GOARCH: arch
|
||||
}
|
||||
}
|
||||
command: {
|
||||
args: [package]
|
||||
|
Reference in New Issue
Block a user