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 package: *"." | string
// Target architecture // Target architecture
arch: *"amd64" | string arch?: string
// Target OS // Target OS
os: *"linux" | string os?: string
// Build tags to use for building // Build tags to use for building
tags: *"" | string tags: *"" | string
@ -30,8 +30,12 @@ import (
"source": source "source": source
"env": { "env": {
env env
GOOS: os if os != _|_ {
GOARCH: arch GOOS: os
}
if arch != _|_ {
GOARCH: arch
}
} }
command: { command: {
args: [package] args: [package]