-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing binary / wrong binary for Raspberry / Raspbian armv7l vs. armhf #9128
Comments
Probably this commit: goreleaser/goreleaser@d7e1bcc @caarlos0 sorry for "mentioning you" like this, but when you say "armv7 on linux is usually armv7l", what do you base that on? (in GoReleaser it has been To fix the above particular issue, I assume I can I just do:
|
I'm using an Raspberry 4 for education ... The German error text says: The image is for armv7l architecture, but the HW/OS is armv7l 32bit! OS says:
HTH |
@bep no problem I mean that as far as I've seen, when GOARCH=arm and GOARM=7 it is a @gj52 you'll likely need the arm6 package (which should be armhf) EDIT: forgot to add the config to fix: goos:
- darwin
- linux
- windows
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 7
- 6 # add this line :) |
will likely need to change some name templates as well, e.g. https://github.com/gohugoio/hugo/blob/master/goreleaser.yml#L170 probably something like: file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}{{ with .Arm }}{{ . }}{{ end }}" |
I have released 0.89.1 where I have reverted the "Goreleaser MacOS fat binary" update, which I assumes also fixes this issue, but I'll keep this issue open to track the comeback of that feature. |
Thanks, now working, perfect! |
hmm, so maybe my accessment of that was wrong 🤔 will revert the commit for now... thanks @bep |
@gj52 Have you tested the v0.111.3 binary? I'm pretty sure we can close this issue. Hugo has been using gohugoio/hugoreleaser instead of goreleaser/goreleaser since v0.102.0. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?0.89
Does this issue reproduce with the latest release?
download hugo_0.89.0_Linux-ARM.deb and install on Raspbian
root@pi4:/home/hugo/hugo/_raspbian# dpkg -i hugo_0.89.0_Linux-ARM.deb
dpkg: Fehler beim Bearbeiten des Archivs hugo_0.89.0_Linux-ARM.deb (--install): ## ERROR installing
Paket-Architektur (armv7l) passt nicht zum System (armhf) ## does not match architecure armhf
The text was updated successfully, but these errors were encountered: