Giter VIP home page Giter VIP logo

Comments (7)

stgraber avatar stgraber commented on August 9, 2024
stgraber@castiana:~/data/code/go/src/github.com/lxc/distrobuilder (lxc/master)$ make
gofmt -s -w .
go get -t -v -d ./...
go install -v ./...
gopkg.in/flosch/pongo2.v3
github.com/lxc/distrobuilder/shared
github.com/lxc/distrobuilder/sources
github.com/lxc/distrobuilder/managers
github.com/lxc/distrobuilder/image
github.com/lxc/distrobuilder/generators
github.com/lxc/distrobuilder/distrobuilder
distrobuilder built successfully

When building Go code, it's important that you build it from the right path within your GOPATH, in this case, this should be ${GOPATH}/src/github.com/lxc/distrobuilder, assuming the default, it should be ~/go/src/github.com/lxc/distrobuilder which will fix your import issue.

from distrobuilder.

htbase avatar htbase commented on August 9, 2024

thanks

Yes, Am on the correct path but still presents the same

root@server1:~/go/src/github.com/lxc/distrobuilder# make
gofmt -s -w .
go get -t -v -d ./...
import cycle not allowed
package github.com/lxc/distrobuilder/distrobuilder
imports bufio
imports bytes
imports errors
imports runtime
imports internal/bytealg
imports internal/cpu
imports runtime
Makefile:4: recipe for target '

from distrobuilder.

stgraber avatar stgraber commented on August 9, 2024

Hmm, odd, can you show echo ${GOPATH} and go version?

from distrobuilder.

stgraber avatar stgraber commented on August 9, 2024

We build distrobuilder from source for every image build we make, so it clearly does build fine, just wondering what's different with your setup.

from distrobuilder.

htbase avatar htbase commented on August 9, 2024

Here it is

root@server1:~/go/src# echo ${GOPATH}
/root/go

root@server1:~/go/src# go version
go version go1.6.2 linux/amd64

from distrobuilder.

stgraber avatar stgraber commented on August 9, 2024

Oh, yeah, I don't think 1.6 will work at all as some of the packages we're using require 1.7 or 1.8.

Our own builds all use Go 1.10 or 1.11.

from distrobuilder.

htbase avatar htbase commented on August 9, 2024

awesome, will bump it to 1.11 and try again

Thanks!

from distrobuilder.

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.