pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.52k stars 380 forks source link

undefined: "github.com/pkg/errors".Is #412

Closed bharathtnt closed 3 years ago

bharathtnt commented 3 years ago

please guide us how to fix this we are getting below error we are using Go:1.10

github.com/pkg/sftp ../github.com/pkg/sftp/client.go:987:7: undefined: "github.com/pkg/errors".Is

davecheney commented 3 years ago

Sorry, the minimum supported version is Go 1.14

drakkan commented 3 years ago

You should change that line to err == io.EOF if you want to use Go 1.10, but you should really update your Go installation, Go 1.10 is not supported anymore and could have security issues, thank you

bharathtnt commented 3 years ago

Thankyou @davecheney and @drakkan

updating to Go 1.14 is a huge change for us we have multiple services which run on Go 1.10 will discuss internally and get Back to u if any help needed thanks

puellanivis commented 3 years ago

Updating to Go 1.14 might seem like it’s a drastic change, but because of the Go compatibility guarantees, the likelihood of that actually causing any issues is extremely low.