Can't find import: "context" appears when trying to move echo on GAE

Asked 2 years ago, Updated 2 years ago, 106 views

Thank you for your help.
Currently, I am trying to run echo in a GAE environment, but it says "can't find import:"context" and I can't.

You will see the following

golang.org/x/crypto/acme/acme.go:18:can't find import:"context"

Goapp and goversion are as follows

go version go1.8 darwin/amd64
version 1.6.3 (appengine-1.9.53) darwin/amd64

I would appreciate it if someone could tell me.
I'm sorry, but I appreciate your cooperation.

go google-app-engine go-echo

2022-09-30 15:38

1 Answers

Although echo made a commit corresponding to Go 1.7 to use context, there was an error due to that could be used with GAE at this time.You can temporarily resolve old commits by checking them out.

Currently, Go 1.7 is available on GAE, so it can be handled by increasing the version of Go on the GAE side.

--Comments and Mr. SpitsonI added a little to the comment of https://ja.stackoverflow.com/users/23063/go%E8%A8%80%E8%AA%9E%E5%AD%A6%E7%BF%92%E4%B8%AD">Questioner.


2022-09-30 15:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.