gokrazy / tools

this repository contains the gok CLI tool of gokrazy
https://gokrazy.org
BSD 3-Clause "New" or "Revised" License
50 stars 26 forks source link

gok: improve the error message for wrong target arch #56

Closed oliverpool closed 1 year ago

oliverpool commented 1 year ago

An issue has been reported regarding the wrong target arch, by @brutella : https://github.com/gokrazy-community/kernel-rpi-os-32/issues/4

target architecture "arm64" doesn't match the github.com/gokrazy-community/kernel-rpi-os-32/dist kernel type "arm"

Adding GOARCH=arm fixed the issue.

This PR adds a hint to the error message, to look for GOARCH:

target architecture "arm64" (GOARCH) doesn't match the github.com/gokrazy-community/kernel-rpi-os-32/dist kernel type "arm"

Introduced by https://github.com/gokrazy/gokrazy/issues/191 and https://github.com/gokrazy/tools/pull/54

stapelberg commented 1 year ago

Thanks!