-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Move godeps to vendor/ #24242
Move godeps to vendor/ #24242
Conversation
@@ -58,7 +58,7 @@ for i in $targets | |||
# | |||
# The intended result is that each incantation of this line returns | |||
# either 0 (pass) or 1 (fail). | |||
godep go vet "${goflags[@]:+${goflags[@]}}" "$i" 2>&1 \ | |||
go vet "${goflags[@]:+${goflags[@]}}" "$i" 2>&1 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On line 42 above, you might want to add something to filter out vendor since go list
will list vendored packages (unlike Godeps/_workspace).
b412e10
to
96dcfc0
Compare
Rebased. 'go build' works but Make still fails. |
I know why. It's because we're trying to build ginkgo, but unlike _workspace/src/, vendor/ is not considered for build. Easy fix, testing now. |
96dcfc0
to
fd761fd
Compare
One reference to _workspace is left: hack/update-godep-licenses.sh |
Uggh. We have deps that do import-rewriting. We glide, conveniently, DOES un-rewrite them.
|
fd761fd
to
bf95f3f
Compare
bf95f3f
to
c766ee8
Compare
I can't, for the life of me, figure out how to get godep to update
hmm, ok...
Yet again, godep is just inscrutable. I have no idea what it wants. |
cd /home/thockin/tmp/godep-vendor/src/github.com/appc/spec; git checkout master usually works |
This is referenced from logrus in some code we don't use. If I |
Ahh, and it ends in failure:
|
That is trying to restore a specific version of kubernetes. On Tue, Apr 19, 2016 at 10:21 PM, Prashanth B notifications@github.com
|
Awesome, now Go just barfs.
Nuke from orbit and start over. Have I mentioned today how much I loathe these tools. Please just tell me WTF you are doing...please... |
c766ee8
to
f6584c7
Compare
The build is now fast enough to not need them.
Go mistreats "testdata" and can't find vendor/ dirs.
a) it doesn't need it b) changing CWD to a path with symlinks breaks deep within ginkgo, where it crafts a relative path to ../../../../../../platforms/amd64/whatever which then traverses the physical path not the symlinked one, and breaks.
Rebased and re-pushed. @k8s-oncall WAW team, consider a manual merge, please? I rebase this daily :( |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 2100016. |
Automatic merge from submit-queue |
W00t! |
It's hard to know if the merge queue ran really well over the weekend or if this PR just caused every single other PR to need a rebase, so the number in the queue dropped dramtically. (ok, actually you can tell, this PR seemingly kicked 3 others out of the merge queue because they now need a rebase, so really not that bad) |
The merge queue ran well on Sunday. On Mon, May 9, 2016 at 11:57 AM, Eric Paris notifications@github.com
|
wh00! good job! |
FWIW I tried the same treatment on contrib/ (which has many _workspace dirs is various sub-dirs) and godep basically crapped the bed. First it gave me errors about dirty directories that were not dirty. Then it decided to vendor the entire contrib directory into a subdir of the contrib directory. As usual, no error messages, no justification. |
I tried doing it for contrib/ingress this morning, I got
At which point I decided to de-prioritize, just rev godeps till right before your commit, and hope someone else gets to the bottom of it :) |
Sounds helpful
|
So I tried in contrib. Interesting results. One First, if you But then I ran into:
Which looks to me that golang is complaining that |
Found the solution. I had |
In /.gitignore we have lines like `kubernetes/`. Because that line is not anchored with `/` it ignores any directory called `kubernetes` anywhere in the repo. This caused a problem in kubernetes#24242 because the user didn't realize that the directory in `vendor/` was being ignored.
@thockin You mention Glide in the PR and related issue. I was wondering if the choice of keeping Godep versus moving to Glide was documented somewhere? |
I think glide is a better tool,and intend to move to it as soon as possible. On Tue, May 10, 2016 at 2:31 PM, Corentin Debains notifications@github.com
|
This is a first-step towards glide support, maybe we don't want or need to take this, but it was easy to try.
This fails to compile, not sure why: