Add Apple M1 Build Arch (& other arm64) #28
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that go 1.16 has dropped, we can add darwin/arm64 to our build targets.
This change:
1.16.x
in the Travis CI configdarwin
platform into its owngox
call (darwin/386
is not a validGOOS
/GOARCH
pair)cannot find main module
error ingo vet
)Replacement
struct (to satisfy thelint
job)gofmt -s
(to satisfy thefmt
job)Discussion
https://a8c.slack.com/archives/CKUJZT08Y/p1614186371037300?thread_ts=1614128274.023800&cid=CKUJZT08Y
To Test
make
ls build
should contain valid gzipped binaries for all supported platform / architecture pairs.Test on an M1 Mac
curl -L -o - https://github.com/Automattic/go-search-replace/releases/download/0.0.6-pre/go-search-replace_darwin_arm64.gz | gunzip > /tmp/go-search-replace
chmod +x /tmp/go-search-replace
echo "You can do anything at https://zombo.com" | /tmp/go-search-replace "zombo.com" "wpvip.com"
Fixes #27