Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

[goxc] Failing build for Darwin on Go 1.15.x  #121

@weldpua2008

Description

@weldpua2008

Hey there,

I am using the following command
goxc -tasks 'xc archive' -bc 'darwin linux' -d "$RELEASES_PATH" -resources-include 'README*' -build-ldflags="-X github.com/weldpua2008/supraworker/cmd.GitCommit=${TRAVIS_TAG} "

And with Go 1.15.x where they removed Darwin/386 I am getting:

$ goxc -tasks 'xc archive' -bc 'darwin linux' -d "$RELEASES_PATH" -resources-include 'README*' -build-ldflags="-X github.com/weldpua2008/supraworker/cmd.GitCommit=${TRAVIS_TAG} "
[goxc:xc] 2020/10/10 11:50:57 Parallelizing xc for 5 platforms, using max 1 of 2 processors
[goxc:xc] 2020/10/10 11:50:57 WARNING: LdFlagsXVars is nil. Not passing package version into compiler
cmd/go: unsupported GOOS/GOARCH pair darwin/386
[goxc:xc] 2020/10/10 11:50:57 'go' returned error: Wait error: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/386
[goxc:xc] 2020/10/10 11:50:57 Error: Wait error: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/386
[goxc:xc] 2020/10/10 11:50:57 Have you run `goxc -t` for this platform (386,darwin)???
[goxc:xc] 2020/10/10 11:50:57 WARNING: LdFlagsXVars is nil. Not passing package version into compiler
[goxc:xc] 2020/10/10 11:51:28 WARNING: LdFlagsXVars is nil. Not passing package version into compiler
[goxc:xc] 2020/10/10 11:51:58 WARNING: LdFlagsXVars is nil. Not passing package version into compiler
[goxc:xc] 2020/10/10 11:51:59 WARNING: LdFlagsXVars is nil. Not passing package version into compiler
[goxc:xc] 2020/10/10 11:52:29 Multiple errors (returning first one): [Wait error: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/386]
[goxc:xc] 2020/10/10 11:52:29 Stopping after 'xc' failed with error 'Wait error: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/386'
[goxc] 2020/10/10 11:52:29 RunTasks error: Wait error: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/386
The command "goxc -tasks 'xc archive' -bc 'darwin linux' -d "$RELEASES_PATH" -resources-include 'README*' -build-ldflags="-X github.com/weldpua2008/supraworker/cmd.GitCommit=${TRAVIS_TAG} "" failed and exited with 1 during .

the temporary solution was to use 1.14.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions