Downloading api module #63357
Unanswered
teddykgb13
asked this question in
Q&A
Replies: 2 comments
-
|
See here https://goteleport.com/docs/zero-trust-access/api/getting-started/#step-33-create-a-go-project To get the right version you would do in a sep directory git clone https://github.com/gravitational/teleport -b v18.6.5 --depth=1
cd teleport
go list -f '{{.Version}}' -m "github.com/gravitational/teleport/api@$(git rev-parse v18.6.5)"You should get Then you can do this to get the v18.6.5 version api client. go get github.com/gravitational/teleport/api/client@v0.0.0-20260129183032-4bc3277423cc |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
A slightly simpler way: Replace |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use
go get github.com/gravitational/teleport/api/v18@v18.6.5, but I am not able to, it errors out with:go: github.com/gravitational/teleport/api@v18.6.5: invalid version: module contains a go.mod file, so module path must match major version ("github.com/gravitational/teleport/api/v18")What is the proper way to get the API module so that I can use it in my application?
Beta Was this translation helpful? Give feedback.
All reactions