asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install fail

michail-vestnik opened this issue · comments

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

It seems you're using an older version of GO. What do you see when you do go version?

go version go1.17 linux/amd64

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?

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. Спасибо!