asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app
MIT License
404 stars 83 forks source link

Install fail #70

Closed michail-vestnik closed 3 years ago

michail-vestnik commented 3 years ago

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
asticode commented 3 years ago

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

michail-vestnik commented 3 years ago

go version go1.17 linux/amd64

asticode commented 3 years ago

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?

michail-vestnik commented 3 years ago

I understand what the problem is. Linux Debian has Go out of the box and if you don't do a go mod initthe system uses the old version.

It all works now. Спасибо!