Install fail
michail-vestnik opened this issue · comments
vestnik commented
hi!
go get -u github.com/asticode/go-astilectron-demo
Result:
# github.com/akavel/rsrc/coff
../../../go/src/github.com/akavel/rsrc/coff/coff.go:133:18: undefined: pe.IMAGE_FILE_MACHINE_ARMNT
../../../go/src/github.com/akavel/rsrc/coff/coff.go:220:7: undefined: pe.IMAGE_FILE_MACHINE_ARMNT
# github.com/asticode/go-astikit
../../../go/src/github.com/asticode/go-astikit/binary.go:126:32: invalid operation: in >> (i * 8) (shift count type int, must be unsigned integer)
../../../go/src/github.com/asticode/go-astikit/binary.go:133:32: invalid operation: in >> (i * 8) (shift count type int, must be unsigned integer)
../../../go/src/github.com/asticode/go-astikit/binary.go:197:33: invalid operation: toWrite >> i (shift count type int, must be unsigned integer)
../../../go/src/github.com/asticode/go-astikit/errors.go:65:11: undefined: errors.Unwrap
../../../go/src/github.com/asticode/go-astikit/http.go:328:14: undefined: http.NewRequestWithContext
../../../go/src/github.com/asticode/go-astikit/ssh.go:32:8: undefined: strings.ReplaceAll
../../../go/src/github.com/asticode/go-astikit/sync.go:488:9: undefined: errors.Is
Quentin Renard commented
It seems you're using an older version of GO. What do you see when you do go version
?
vestnik commented
go version go1.17 linux/amd64
Quentin Renard commented
Mmmm this is really weird, some of the errors are errors in go < 1.13
Are you sure you used the same go version for go version
and go get
?
vestnik commented
I understand what the problem is. Linux Debian has Go out of the box and if you don't do a go mod init
the system uses the old version.
It all works now. Спасибо!