coffer icon indicating copy to clipboard operation
coffer copied to clipboard

сборка под raspberry pi

Open akerigan opened this issue 1 year ago • 1 comments

добрый день! произвожу go build на raspberry pi и получаю ошибку: /home/pi/go/pkg/mod/github.com/claygod/[email protected]/services/startstop/config.go:15:2: constant 10000000000 overflows int видимо, на arm платформе int не такой большой на x86_64 поменял локально maxIterations int = 1e10 на maxIterations int64 = 1e10 и всё собралось ( попутно поправил ошибку "/home/pi/go/pkg/mod/github.com/claygod/[email protected]/services/startstop/startstop.go:39:16: invalid operation: i < maxIterations (mismatched types int and int64)" ) предлагаю поменять тип константы maxIterations с int на int64

akerigan avatar Apr 09 '23 10:04 akerigan

Привет, да тип int зависит от платформы. Сделал коммит, попробуй плз, собирается ли теперь

claygod avatar Apr 09 '23 17:04 claygod