You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to install anything later than 2.17.0 release with go modules. Running go get -u -t zombiezen.com/go/capnproto2/... results in installing v2.17.0 which is a bit ironic as 2.17.1 introduced a support for go modules to this project :-). I believe that go.mod is missing version tag in its name. Instead of module zombiezen.com/go/capnproto2 should have module zombiezen.com/go/capnproto2/v2.
Results in (when running go mod tidy): require zombiezen.com/go/capnproto2: version "v2.17.4" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
Results in (when running go mod tidy): go: zombiezen.com/go/capnproto2/[email protected]: unrecognized import path "zombiezen.com/go/capnproto2/v2" (parse https://zombiezen.com/go/capnproto2/v2?go-get=1: no go-import meta tags ())
The text was updated successfully, but these errors were encountered:
Hey Robert. Sorry about this.. the basic problem is that this package has been around and using semantic import versioning before that became codified in the Go toolchain. Unfortunately, this means that the import path doesn't correctly have a v2 suffix. My plan is to publish a version of zombiezen.com/go/capnproto2 that forwards all the declarations to zombiezen.com/go/capnproto/v2 and make that the canonical import path.
However, I haven't had time to prioritize this over other work I'm doing, since it'll be fairly involved to do it in a way that minimizes breakage. I suppose I could fix the situation by removing the go.mod file, but I haven't thought through the implications yet.
That's perfectly understandable, thank you for the reply! I will use pseudo-versions (e.g. zombiezen.com/go/capnproto2 v0.0.0-20190813022230-ddfb9bb855fa for ddfb9bb)
for updating capnproto in the meanwhile.
I am not able to install anything later than 2.17.0 release with go modules. Running
go get -u -t zombiezen.com/go/capnproto2/...
results in installingv2.17.0
which is a bit ironic as 2.17.1 introduced a support for go modules to this project :-). I believe thatgo.mod
is missing version tag in its name. Instead ofmodule zombiezen.com/go/capnproto2
should havemodule zombiezen.com/go/capnproto2/v2
.Manually editing my project's go.mod:
Results in (when running
go mod tidy
):require zombiezen.com/go/capnproto2: version "v2.17.4" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
Editing to:
Results in (when running
go mod tidy
):go: zombiezen.com/go/capnproto2/[email protected]: unrecognized import path "zombiezen.com/go/capnproto2/v2" (parse https://zombiezen.com/go/capnproto2/v2?go-get=1: no go-import meta tags ())
The text was updated successfully, but these errors were encountered: