Closed the-destro closed 6 years ago
@the-destro Not sure if you found a workaround, but in the meantime, I got around the issue by clearing out my vendor directory, running go get github.com/docker/libcompose
and copying from my $GOPATH/src
into my vendor directory. I'm very new to Go so there's probably a better answer.
You can try to add the following constraint to Gopkg.toml (since you're using dep):
[[override]]
name = "github.com/xeipuuv/gojsonschema"
revision = "0c8571ac0ce161a5feb57375a9cdf148c98c0f70"
0c8571ac0ce161a5feb57375a9cdf148c98c0f70
is just before https://github.com/xeipuuv/gojsonschema/commit/90a5d0892ddc0fe47d6d68e7b93f0d67e18e6cbe which is a breaking change.
Thanks!
Sent from my iPhone
On Feb 13, 2018, at 8:31 AM, Krzysztof Sinica notifications@github.com wrote:
You can try to add the following constraint to Gopkg.toml (since you're using dep):
[[constraint]] name = "github.com/xeipuuv/gojsonschema" revision = "0c8571ac0ce161a5feb57375a9cdf148c98c0f70" 0c8571ac0ce161a5feb57375a9cdf148c98c0f70 is just before xeipuuv/gojsonschema@90a5d08 which is a breaking change.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I'm trying to use libcompose v0.4.0
inside of a go module project and getting the same errors.
To resolve the gojsonschema.FormatChecker
error I have run go get -v github.com/xeipuuv/gojsonschema@0c8571a
which set the right revision to my dependencies.
But now I'm still having the following ones:
# github.com/docker/libcompose/docker/builder
../../../go/pkg/mod/github.com/docker/libcompose@v0.4.0/docker/builder/builder.go:99:3: cannot use d.BuildArgs (type map[string]string) as type map[string]*string in field value
# github.com/docker/libcompose/docker/volume
../../../go/pkg/mod/github.com/docker/libcompose@v0.4.0/docker/volume/volume.go:72:39: undefined: types.VolumeCreateRequest
# github.com/docker/libcompose/docker/container
../../../go/pkg/mod/github.com/docker/libcompose@v0.4.0/docker/container/functions.go:27:3: unknown field 'Filter' in struct literal of type types.ContainerListOptions
I cannot find which version of github.com/docker/docker
should I use. Can somebody help me?
Does anyone have an update?
Or can send me his Gopkg.toml
Please
Feshly fetched via dep: