Open danhale-git opened 3 years ago
The errors were due to incorrect go version, downloaded the latest and updated the setup issue.
New errors:
$ go get github.com/danhale-git/craft
# github.com/danhale-git/craft/internal/craft
go/src/github.com/danhale-git/craft/internal/craft/dockerclient.go:103:4: cannot use "github.com/docker/go-connections/nat".PortSet literal (type "github.com/docker/go-connections/nat".PortSet) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortSet in field value
go/src/github.com/danhale-git/craft/internal/craft/dockerclient.go:113:4: cannot use portBinding (type "github.com/docker/go-connections/nat".PortMap) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value
To successfully install, go through each error deleting the vendor directory in the package like so:
rm -rf github.com/docker/docker/vendor/
(re: the above example)
@danhale-git Can you please help me with the below error? github.com/docker/docker/vendor/github.com/containerd/containerd/errdefs go/src/github.com/docker/docker/vendor/github.com/containerd/containerd/errdefs/errors.go:54:9: undefined: "github.com/docker/docker/vendor/github.com/pkg/errors".Is
Hi @codeWithUtkarsh. I just added goreleaser so you should be able to download a binary for windows or linux here.
If you want to build locally, this comment has the gist of what fixed similar errors for me.
Further reading in the links in this comment.