Automattic / go-search-replace

🚀 Search & replace URLs in WordPress SQL files.
https://wpvip.com/2018/03/28/data-sync-on-vip-go/
GNU General Public License v3.0
88 stars 19 forks source link

Build failed: unsupported GOOS/GOARCH pair darwin/386 #25

Closed seafarer closed 3 years ago

seafarer commented 4 years ago
1 errors occurred:
--> darwin/386 error: exit status 2
Stderr: cmd/go: unsupported GOOS/GOARCH pair darwin/386

make: *** [build] Error 1

It looks like this might be the culprit: https://go-review.googlesource.com/c/tools/+/227552/

The darwin/386 port has been removed per golang.org/issue/37610. TestSizes needs an operating system that has both amd64 and 386 ports, so darwin no longer qualifies. NetBSD has had its 386 port restored recently in golang/go#31726, so it can be used instead.

I got myself up and running by deleting everything in the makefile except my own os, but dont know Go well enough to submit a PR.

joshbetz commented 4 years ago

@seafarer Does this latest commit fix it?

seafarer commented 4 years ago

@joshbetz unfortunately no. Same error. I do have gox installed.

$ which gox
$ /Users/<user>/go/bin/gox

I deleted and started fresh

pjhoberman commented 4 years ago

I have the same issue as @seafarer, and the same solution (removing -os="darwin" -os="windows" from the Makefile) worked for me.

youngjuning commented 3 years ago

@pjhoberman just remove -os="darwin"

jblz commented 3 years ago

Fixed in #28