ibuildthecloud / systemd-docker

Wrapper for "docker run" to handle systemd quirks
Apache License 2.0
721 stars 111 forks source link

error when running go get #6

Closed f0 closed 10 years ago

f0 commented 10 years ago

Hi, if i try to go get systemd-docker i got the following errors, if i clone the git repo and run build, it works without errors

koch@linux-np5s:~/Workspace/go> go get github.com/ibuildthecloud/systemd-docker
# github.com/ibuildthecloud/systemd-docker
src/github.com/ibuildthecloud/systemd-docker/main.go:169: unknown docker.RemoveContainerOptions field 'Force' in struct literal
src/github.com/ibuildthecloud/systemd-docker/main.go:265: undefined: docker.NewVersionedClient
src/github.com/ibuildthecloud/systemd-docker/main.go:474: client.Logs undefined (type *docker.Client has no field or method Logs)
src/github.com/ibuildthecloud/systemd-docker/main.go:474: undefined: docker.LogsOptions
src/github.com/ibuildthecloud/systemd-docker/main.go:523: unknown docker.RemoveContainerOptions field 'Force' in struct literal
ibuildthecloud commented 10 years ago

I'll look into this. Did you try go get -u? Is it possible that you have an old version of github.com/fsouza/go-dockerclient? Once the build script was added I stopped testing go get so it very well may be broken.

f0 commented 10 years ago

Hi,

i think there is something wrong with my dockerclient version... (i don't have changed anything locally), after removing fsouza/go-dockerclient and try again it works

och@linux-np5s:~/Workspace/go> go get -u github.com/ibuildthecloud/systemd-docker
# cd /home/koch/Workspace/go/src/github.com/fsouza/go-dockerclient; git pull --ff-only
From https://github.com/fsouza/go-dockerclient
   ff447df..46ba1ae  master     -> origin/master
error: Your local changes to the following files would be overwritten by merge:
    .travis.yml
    AUTHORS
    README.markdown
    change.go
    client.go
    client_test.go
    container.go
    container_test.go
    engine/engine.go
    engine/engine_test.go
    engine/env.go
    engine/env_test.go
    engine/hack.go
    engine/helpers_test.go
    engine/http.go
    engine/job.go
    engine/job_test.go
    engine/streams.go
    engine/streams_test.go
    example_test.go
    image.go
    image_test.go
    misc.go
    misc_test.go
    testing/server.go
    testing/server_test.go
    utils/random.go
    utils/stdcopy.go
    utils/uname_darwin.go
    utils/uname_linux.go
    utils/utils.go
    utils/utils_test.go
Please, commit your changes or stash them before you can merge.
Aborting
Updating ff447df..46ba1ae
package github.com/ibuildthecloud/systemd-docker
    imports github.com/docker/docker/api
    imports github.com/docker/docker/dockerversion
    imports github.com/docker/docker/engine
    imports github.com/docker/docker/pkg/ioutils
    imports github.com/docker/docker/pkg/log
    imports github.com/docker/docker/pkg/term
    imports github.com/docker/docker/pkg/units
    imports github.com/docker/docker/utils
    imports github.com/docker/docker/pkg/parsers
    imports github.com/docker/docker/pkg/version
    imports github.com/docker/docker/opts
    imports github.com/docker/docker/pkg/mflag
    imports github.com/fsouza/go-dockerclient: exit status 1