Skip to content

Commit

Permalink
.goxc.json: list os/arch explicitly to avoid darwin/386
Browse files Browse the repository at this point in the history
Go 1.15 drops support for darwin/386 GOOS/GOARCH pair [1]. So, we have
to skip this pair, and thus cannot use simple os multiply arch anymore.
Switch to goxc's BuildConstraints config, which uses the same syntax as
Go's build constraint header [2].

[1] golang/go#37610
[2] https://golang.org/cmd/go/#hdr-Build_constraints
  • Loading branch information
peat-psuwit committed Mar 24, 2021
1 parent cbf0416 commit db34883
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .goxc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
}
},
"ResourcesInclude": "README.rst,LICENSE,AUTHORS,man/aptly.1",
"Arch": "386 amd64",
"Os": "linux darwin freebsd",
"BuildConstraints": "linux,386 linux,amd64 darwin,amd64 freebsd,386 freebsd,amd64",
"MainDirsExclude": "_man,vendor",
"BuildSettings": {
"LdFlagsXVars": {
Expand Down

0 comments on commit db34883

Please sign in to comment.