Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding instructions on how to use "dep" to get client-go v3.0.0-beta.0 in INSTALL.md #182

Closed

Conversation

caesarxuchao
Copy link
Member

dep doesn't interpret Godeps.json, so we need to manually checkout the compatible version of apimachinery.

I don't want to check in the manifest/lock files of dep, as the format is not stable. In fact, the README of dep suggests not checking in these files.

Alternative to this PR, perhaps we should remove dep from INSTALL.md until it becomes beta? @cscatolini @ericchiang @mbohlool @lavalamp what do you think?

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 18, 2017
@k8s-reviewable
Copy link

This change is Reviewable

$ dep ensure k8s.io/client-go@v3.0.0-beta.0
# Unfortunately dep doesn't interpret client-go/Godeps/Godeps.json, so you need
to manually checkout the compatible k8s.io/apimachinery version:
$ dep ensure k8s.io/apimachinery@75b8dd260ef0469d96d578705a87cffd0e09dab8
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i checked out 72e51762028fdf72f1a20e59bedceece02a425c6.

but i see errors like

scheme.AddDefaultingFuncs undefined (type *runtime.Scheme has no field or method AddDefaultingFuncs)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also both apimachinery and master are broken.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm... it seems working now after i got every deps flattened.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like dep doesn't remove nested "vendor" directories golang/dep#120

@cscatolini
Copy link

@caesarxuchao the changes look good to me. I like that you added "experimental" to the dep instructions :)

Copy link
Contributor

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to mark it experimental.

# If you want to use client-go v3.0.0-beta.0:
$ dep ensure k8s.io/client-go@v3.0.0-beta.0
# Unfortunately dep doesn't interpret client-go/Godeps/Godeps.json, so you need
to manually checkout the compatible k8s.io/apimachinery version:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: prefix with "#"

$ dep ensure k8s.io/client-go@v3.0.0-beta.0
# Unfortunately dep doesn't interpret client-go/Godeps/Godeps.json, so you need
to manually checkout the compatible k8s.io/apimachinery version:
$ dep ensure k8s.io/apimachinery@75b8dd260ef0469d96d578705a87cffd0e09dab8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like dep doesn't remove nested "vendor" directories golang/dep#120

mfojtik pushed a commit to mfojtik/client-go that referenced this pull request Apr 11, 2022
bug 1949306: regenerate client-go for api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants