universe: go: do not hardcode default platform

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2022-03-31 19:17:11 -07:00
parent d79de11fa8
commit f90b1ad079

View File

@ -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]