globalsign / est

An implementation of the Enrollment over Secure Transport (EST) certificate enrollment protocol
MIT License
45 stars 27 forks source link

Install fails #22

Closed ondrejspilkaABB closed 3 years ago

ondrejspilkaABB commented 3 years ago

Ubuntu 18.04 on WSL clean install

$go get github.com/globalsign/est
# github.com/go-chi/chi
go/src/github.com/go-chi/chi/tree.go:60:20: invalid operation: 2 << n (shift count type int, must be unsigned integer)
# github.com/google/go-tpm/tpm2
go/src/github.com/google/go-tpm/tpm2/open_other.go:38:6: undefined: errors.Is

image

paulgriffiths commented 3 years ago

@ondrejspilkaABB : which version of Go are you using?

ondrejspilkaABB commented 3 years ago

go version go1.10.4 linux/amd64

paulgriffiths commented 3 years ago

go version go1.10.4

This package supports a minimum Go version of 1.13, so upgrading to a more recent version of Go is the only real solution (version 1.17 is the current one). Most fundamentally, the package and all its dependencies use Go modules, which weren't introduced until version 1.11, and specifically the error-handling functionality referred to in your second error message was introduced in version 1.13.

ondrejspilkaABB commented 3 years ago

Thanks, my fault, didn't expect to have outdated Go version.