essentialkaos / yo

Command-line YAML processor

Home Page:https://kaos.sh/yo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot cross compile for Arm7

hongkongkiwi opened this issue · comments

commented

When attempting to compile for ARM7 the following errors appear:

go build -v github.com/essentialkaos/yo
pkg.re/essentialkaos/ek.v10/system
# pkg.re/essentialkaos/ek.v10/system
/opt/go/src/pkg.re/essentialkaos/ek.v10/system/info_linux.go:32:39: cannot use info.Nodename (type [65]uint8) as type [65]int8 in argument to byteSliceToString
/opt/go/src/pkg.re/essentialkaos/ek.v10/system/info_linux.go:33:39: cannot use info.Sysname (type [65]uint8) as type [65]int8 in argument to byteSliceToString
/opt/go/src/pkg.re/essentialkaos/ek.v10/system/info_linux.go:36:39: cannot use info.Release (type [65]uint8) as type [65]int8 in argument to byteSliceToString
/opt/go/src/pkg.re/essentialkaos/ek.v10/system/info_linux.go:37:39: cannot use info.Machine (type [65]uint8) as type [65]int8 in argument to byteSliceToString

The errors do not appear when compiling for darwin .

Hi! I have released a new version of ek package with improved ARM support and have updated yo to using it (#23). So, you can build the latest version by yourself or download prebuilt versions.