Closed SVilgelm closed 3 years ago
Thanks for filing this issue! I am still hoping to use this Issue as a way to convince my boss I need a new M1 Mac. ;)
While your suggested build change churns, in case others are hit the same issue, I found some mentions of working around the problem by prefixing the brew
commands with arch -x86_64
.
I will add arm64
to goreleaser. Please give it a spin once it builds, and let us know how it goes.
sure, I will definitely test it as soon as it released. I see that the release job is failed.
I see, you use
executors:
go:
docker:
- image: circleci/golang:1.13
but to build for the M1 chip, you need to use go v1.16
Great point! However, I'm actually seeing a failure to build one of our Docker images, so I suspect an additional issue with goreleaser
and something that changed since our last release.
$ goreleaser --snapshot --skip-publish --rm-dist
I backed out the arm64
change, and still see the above problem with goreleaser. (I'm running go version go1.16.2
)
I'm actually seeing a failure to build one of our Docker images, so I suspect an additional issue with goreleaser and something that changed since our last release.
I think that should be fixed by https://github.com/sonatype-nexus-community/nancy/pull/231
Yeah, I see the build is fixed. Could you please release next version?
Thank You @zendern for finding and fixing the build issue!
@SVilgelm The build of release v1.0.19
succeeded, and the bits should trickle out momentarily.
I didn't see a specific darwin-arm64
binary generate, so maybe there is more I need to change?
If things still fail for you, could you share a link to adding the arm64 in goreleaser helps at least for home-brew builds
?
@bhamail you still need to change the executor to use go v1.16: https://github.com/sonatype-nexus-community/nancy/blob/main/.circleci/config.yml#L17-L20 otherwise it will not build for M1 chip
@bhamail you still need to change the executor to use go v1.16: https://github.com/sonatype-nexus-community/nancy/blob/main/.circleci/config.yml#L17-L20 otherwise it will not build for M1 chip
Doh! And you even explicitly told me that. On it.
OK, v1.0.20
looks much better, as there is a darwin-arm64
binary. Please holler with your results.
Confirm, it works:
==> Updated Formulae
Updated 18 formulae.
Using golangci/tap
Using kyoh86/tap
Tapping sonatype-nexus-community/nancy-tap
Using sv-tools/apps
Using golangci/tap/golangci-lint
Using kyoh86/tap/richgo
Installing sonatype-nexus-community/nancy-tap/nancy
Using sv-tools/apps/bumptag
Homebrew Bundle complete! 8 Brewfile dependencies now installed.
..............
Checking for updates...
Already up-to-date.
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Summary ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━┫
┃ Audited Dependencies ┃ 6 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━┫
┃ Vulnerable Dependencies ┃ 0 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━┛
Thanks so much for your help with this! I still say I need some M1 silicon. ;)
They are pretty good, very fast :) There is only one problem with developing in go - debugging does not work because of the issue: https://github.com/go-delve/delve/issues/2436
==> Tapping sonatype-nexus-community/nancy-tap Cloning into '/opt/homebrew/Library/Taps/sonatype-nexus-community/homebrew-nancy-tap'... Error: Invalid formula: /opt/homebrew/Library/Taps/sonatype-nexus-community/homebrew-nancy-tap/nancy.rb formulae require at least a URL Error: Cannot tap sonatype-nexus-community/nancy-tap: invalid syntax in tap! Tapping sonatype-nexus-community/nancy-tap has failed!