-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find package "context" #65
Comments
zz@zz-virtual-machine:~/go/src/github.com/canonical/go-dqlite$ go env |
After install go1.13, the "Cannot find package "context"" problem solved, but came new problems: zz@zz-virtual-machine:~/go/src/github.com/canonical/go-dqlite$ go install -tags libsqlite3 ./cmd/dqlite-demo |
Please try to create a file called package main
import (
"context"
"fmt"
)
func main() {
fmt.Println(context.Background())
} and then run If it fails in the same way, it probably means that you have mixed up your Go 1.6 and Go 1.13 installations. |
dqlite-demo binary is installed, but something wrong when start : root@zz-virtual-machine:/home/zz/go/src/github.com/canonical/go-dqlite# dqlite-demo start 1 |
You probably compiled the raft library using |
Thanks a lot, now running dqlite-demo well. |
Consumed a lot of time on GO, if CLIENT written in C will be perfect! |
C client would be nice indeed, but at the moment I don't have the time to write it. |
Problem countered:
go install -tags libsqlite3 ./cmd/dqlite-demo
cmd/dqlite-demo/add.go:4:2: cannot find package "context" in any of:
/usr/lib/go-1.6/src/context (from $GOROOT)
/home/zz/go/src/context (from $GOPATH)
/home/zz/go/src/github.com/canonical/go-dqlite/src/context
Originally posted by @179416326 in #64 (comment)
The text was updated successfully, but these errors were encountered: