Git Product home page Git Product logo

Comments (3)

freeekanayaka avatar freeekanayaka commented on August 17, 2024

You don't need to set GOPATH, unless you want a custom location for your Go code.

You need to put the source tree of go-dqlite in the location where go expects it to be:

mkdir -p ~/go/src/github.com/canonical
mv ~/canonical/go-dqlite-master ~/go/src/github.com/canonical/go-dqlite
cd ~/go/src/github.com/canonical/go-dqlite/cmd/dqlite-demo
go build -tags libsqlite3

from go-dqlite.

179416326 avatar 179416326 commented on August 17, 2024

Problem countered:
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

from go-dqlite.

freeekanayaka avatar freeekanayaka commented on August 17, 2024

Go 1.6 is very old and not anymore supported by the Go team. Please Use 1.10 or higher.

from go-dqlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.