Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

cannot find package "github.com/docker/docker/pkg/units" #24

Closed
caffeineaddiction opened this issue Aug 22, 2016 · 4 comments
Closed

cannot find package "github.com/docker/docker/pkg/units" #24

caffeineaddiction opened this issue Aug 22, 2016 · 4 comments

Comments

@caffeineaddiction
Copy link

ca@coeus:~/docker_scripts/dockersh$ docker build .
Sending build context to Docker daemon 289.8 kB
Step 1 : FROM google/golang:1.3
1.3: Pulling from google/golang
a3ed95caeb02: Pull complete
dc50bc165b2f: Pull complete
87097ad3dfb5: Pull complete
789e5cd8710f: Pull complete
780b54325802: Pull complete
Digest: sha256:ae6ce48168192eea01374512888f76b827c5d48b5b48c21834d9709f05320719
Status: Downloaded newer image for google/golang:1.3
---> 2aed3aed932b
Step 2 : ENV GOPATH $GOPATH:/gopath/src/github.com/docker/libcontainer/vendor
---> Running in ac137530032f
---> 2172935e3fea
Removing intermediate container ac137530032f
Step 3 : WORKDIR /gopath/src/github.com/Yelp/dockersh
---> Running in 565862617cb3
---> 98ee1e3c7cd1
Removing intermediate container 565862617cb3
Step 4 : ADD . /gopath/src/github.com/Yelp/dockersh/
---> 16678b27c77c
Removing intermediate container 7c41599e57be
Step 5 : RUN go get
---> Running in 2fe1748a95f6
package github.com/coreos/go-namespaces/namespace
imports github.com/docker/libcontainer
imports github.com/docker/docker/pkg/mount
imports github.com/docker/docker/pkg/symlink
imports github.com/docker/go-units
imports github.com/docker/docker/pkg/units
imports github.com/docker/docker/pkg/units
imports github.com/docker/docker/pkg/units: cannot find package "github.com/docker/docker/pkg/units" in any of:
/goroot/src/pkg/github.com/docker/docker/pkg/units (from $GOROOT)
/gopath/src/github.com/docker/docker/pkg/units (from $GOPATH)
/gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/docker/pkg/units
package github.com/coreos/go-namespaces/namespace
imports github.com/docker/libcontainer
imports github.com/docker/docker/pkg/mount
imports github.com/docker/docker/pkg/symlink
imports github.com/docker/go-units
imports github.com/docker/docker/pkg/units
imports github.com/docker/libcontainer/user
imports github.com/docker/libcontainer/namespaces
imports github.com/docker/libcontainer/namespaces
imports github.com/docker/libcontainer/namespaces: cannot find package "github.com/docker/libcontainer/namespaces" in any of:
/goroot/src/pkg/github.com/docker/libcontainer/namespaces (from $GOROOT)
/gopath/src/github.com/docker/libcontainer/namespaces (from $GOPATH)
/gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/libcontainer/namespaces
The command '/bin/sh -c go get' returned a non-zero code: 1

possibly related to jwilder/docker-squash#28

@caffeineaddiction
Copy link
Author

enryold on jwilder/docker-squash#50 posted:

I solved by creating an empty directory in my .go home folder, than copying 4 files from here
https://github.com/aduermael/minecraft-docker-client/tree/master/go/src/github.com/docker/docker/pkg/units

mkdir -p /Users/enryold/.go/src/github.com/docker/docker/pkg/units
cp /Users/enryold/Downloads/*.go /Users/enryold/.go/src/github.com/docker/docker/pkg/units/

not sure if these are the same units for this project

@caffeineaddiction
Copy link
Author

#26

@dbech
Copy link

dbech commented Nov 17, 2016

I'm getting the same problem

[root@sir1 dockersh]# docker build . Sending build context to Docker daemon 290.3 kB Step 1 : FROM google/golang ---> 09ec5b5ecced Step 2 : ENV GOPATH $GOPATH:/gopath/src/github.com/docker/libcontainer/vendor ---> Using cache ---> e61c9ef5eefb Step 3 : WORKDIR /gopath/src/github.com/Yelp/dockersh ---> Using cache ---> cda1cdacf2f3 Step 4 : ADD . /gopath/src/github.com/Yelp/dockersh/ ---> Using cache ---> ecc03fc596c7 Step 5 : RUN go get ---> Running in 22c548099502 package github.com/docker/docker/pkg/units: cannot find package "github.com/docker/docker/pkg/units" in any of: /usr/local/go/src/github.com/docker/docker/pkg/units (from $GOROOT) /go/src/github.com/docker/docker/pkg/units (from $GOPATH) /go/src/app/_gopath/src/github.com/docker/docker/pkg/units /gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/docker/pkg/units package github.com/docker/libcontainer/namespaces: cannot find package "github.com/docker/libcontainer/namespaces" in any of: /usr/local/go/src/github.com/docker/libcontainer/namespaces (from $GOROOT) /go/src/github.com/docker/libcontainer/namespaces (from $GOPATH) /go/src/app/_gopath/src/github.com/docker/libcontainer/namespaces /gopath/src/github.com/docker/libcontainer/vendor/src/github.com/docker/libcontainer/namespaces The command '/bin/sh -c go get' returned a non-zero code: 1

@solarkennedy
Copy link
Contributor

Sorry, but I'm closing this because we are archiving this project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants