Giter VIP home page Giter VIP logo

Comments (9)

rhatdan avatar rhatdan commented on July 20, 2024

Does not seem like imagebuilder has been ported to non linux platforms. What do you plan on doing with it?

from imagebuilder.

lukas-vlcek avatar lukas-vlcek commented on July 20, 2024

@rhatdan You are running into the same issue?
When I was investigating this I seemed to me that it might be relevant to versioning of golang.org/x/sys library...

from imagebuilder.

nalind avatar nalind commented on July 20, 2024

@rhatdan You are running into the same issue?
When I was investigating this I seemed to me that it might be relevant to versioning of golang.org/x/sys library...

This does look like a build error that would be fixed by pulling in a newer golang.org/x/sys package than we're using now.

from imagebuilder.

lukas-vlcek avatar lukas-vlcek commented on July 20, 2024

I do not think switching to go1.10 helps. I installed gvm and go1.10 via it and here is what I can see now:

$ gvm list

gvm gos (installed)
=> go1.10
   system

$ cd $GOPATH && pwd
/Users/lvlcek/.gvm/pkgsets/go1.10/global

$ go get github.com/openshift/imagebuilder
# github.com/openshift/imagebuilder/vendor/github.com/fsouza/go-dockerclient/internal/archive
src/github.com/openshift/imagebuilder/vendor/github.com/fsouza/go-dockerclient/internal/archive/archive_unix.go:71:25: undefined: unix.Major
src/github.com/openshift/imagebuilder/vendor/github.com/fsouza/go-dockerclient/internal/archive/archive_unix.go:72:25: undefined: unix.Minor

After I manually removed the vendor folder and installed required deps manually (go get ...) I am getting the same, except it is looking for the deps in go1.10 specific location:

$ make build
go build ./cmd/imagebuilder
# github.com/openshift/imagebuilder/vendor/github.com/fsouza/go-dockerclient/internal/archive
../../.gvm/pkgsets/go1.10/global/src/github.com/openshift/imagebuilder/vendor/github.com/fsouza/go-dockerclient/internal/archive/archive_unix.go:71:25: undefined: unix.Major
../../.gvm/pkgsets/go1.10/global/src/github.com/openshift/imagebuilder/vendor/github.com/fsouza/go-dockerclient/internal/archive/archive_unix.go:72:25: undefined: unix.Minor
make: *** [build] Error 2

from imagebuilder.

wjs9715 avatar wjs9715 commented on July 20, 2024

Any luck with this? I get the same thing. @lukas-vlcek Are you using Mojave? It worked for me in High Sierra. Now Im in Mojave and installation failing.

from imagebuilder.

lukas-vlcek avatar lukas-vlcek commented on July 20, 2024

@wjs9715 unfortunately no improvement on my side. I am on Mojave 10.14.2 (18C54). At this moment I am running this code from Fedora 28 and then it works.

from imagebuilder.

lisa avatar lisa commented on July 20, 2024

I've also run into this and worked around with brute force dep ensure -update. However, I don't know how safe that is since it's a wide brush. make test returns true, but I'm not familiar with this project well enough to know if that is sufficient.

from imagebuilder.

nalind avatar nalind commented on July 20, 2024

I think the just-merged #122 pulled in the fix for this.

from imagebuilder.

lukas-vlcek avatar lukas-vlcek commented on July 20, 2024

I can no longer replicate this when using:

$ gvm list

gvm gos (installed)

   go1.10
=> go1.11.13
   system

$ cd $GOPATH/src/github.com/openshift/
$ ls -la  | grep imagebuilder
$ go get -u github.com/openshift/imagebuilder/cmd/imagebuilder
$ ls -la | grep imagebuilder
drwxr-xr-x  27 lvlcek  staff  864 Jan 22 13:25 imagebuilder
$ imagebuilder -version
1.1-dev

Seems like it has been fixed.

from imagebuilder.

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.