Hey team. Should we be using <https://pkg.go.dev/g...
# talk-keto
s
Hey team. Should we be using https://pkg.go.dev/github.com/ory/keto/proto@v0.9.0-alpha.0.pre.0/ory/keto/relation_tuples/v1alpha2 or https://pkg.go.dev/github.com/ory/keto/proto/ory/keto/acl/v1alpha1 against
oryd/keto:v0.9.0-alpha.0
? The docs currently state
go get <http://github.com/ory/keto/proto/ory/keto/acl/v1alpha1@v0.9.0-alpha.0|github.com/ory/keto/proto/ory/keto/acl/v1alpha1@v0.9.0-alpha.0>
but I couldn't get this to work. I did manage to get this working with
rts "<http://github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2|github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2>"
, however this seems to struggle to install in our CI environment, using https://github.com/gomods/athens as a Go module proxy. We get the error
go: <http://github.com/ory/keto/proto@v0.9.0-alpha.0.pre.0|github.com/ory/keto/proto@v0.9.0-alpha.0.pre.0>: reading <http://goproxy.internal.akl.inmusic.dev:3000/github.com/ory/keto/proto/@v/v0.9.0-alpha.0.pre.0.mod>: 404 Not Found
. I've only seen this before with retracted packages. Keen to get some guidance here. Cheers!
s
tags containing
.pre.
are created during our release automation and deleted afterwards you have to fix the version to be
<http://github.com/ory/keto/proto@v0.9.0-alpha.0|github.com/ory/keto/proto@v0.9.0-alpha.0>
where did you find
go get <http://github.com/ory/keto/proto/ory/keto/acl/v1alpha1@v0.9.0-alpha.0|github.com/ory/keto/proto/ory/keto/acl/v1alpha1@v0.9.0-alpha.0>
? we should update that one...
s
That was listed on this page: https://www.ory.sh/docs/keto/sdk/go
It is listed as the latest.
message has been deleted
s
ah well... ok let me redact that one 🤦
so use
v0.9.0-alpha.0
and import
v1alpha2
s
Cool, that's working. Thanks!
p
I was able to
go get <http://github.com/ory/keto/proto@v0.9.0-alpha.0|github.com/ory/keto/proto@v0.9.0-alpha.0>
. But after I did
go mod tidy
, the version changed to
<http://github.com/ory/keto/proto/ory/keto/acl/v1alpha1|github.com/ory/keto/proto/ory/keto/acl/v1alpha1> v0.0.0-20210616104402-80e043246cf9
. How do I import
v1alpha2
@steep-lamp-91158?
s
I guess some of your other dependencies causes this you can use replace
p
Thanks! That was it... Easy one!
s
sure np 😉