-
Notifications
You must be signed in to change notification settings - Fork 541
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
glide get
on a working repo gave me errors
#367
Comments
I added a spew.Dump() before and after the call to installer.Update in the get path, and then diffed them. What I see is some new subpackages like "Godeps/_workspace/src/github.com/coreos/go-semver/semver" being slurped in. It would make sense that, if a recursively vendored dep was newer than my vendored version, and that dep included other packages that I don't, that what I am experiencing might happen. Do we need to undo Godep rewriting before processing? |
hmm, no, that's wrong. I did the same dump on One thing I notice is that the "before" case for update has the |
@vishh this is the biggest blocker to using glide for kubernetes right now. |
@thockin I need to get a bugfix release out in the next day or so. After that I'll look into this. We were talking about this issue earlier in the day. I'm going to look for the fastest and least complicated solution for this. Can I assume https://github.com/thockin/kubernetes/tree/glide is where you're working on this? If I had a suggested change would you be open to a pull request there? Note, I am under the Google CLA already. Right now the |
That is the correct github tree, and if you have proposed changes I am all Thanks. On Tue, Apr 5, 2016 at 3:53 PM, Matt Farina notifications@github.com
|
Any news here? Given that we are going to embrace go-1.6, our change to Glide is even easier -- assuming we can understand/fix this issue (or document whatever I am doing incorrectly) |
I'm not sure how difficult @mattfarina thinks this would be in the current architecture. Given that glide does a fair bit of operating in-place within the vendor directory, it might be tricky. So, this might be a bit easier to wait for (Which oughtn't be that long. If progress continues as it has, maybe as early as next week!_ |
I don't actually know what "this" is. To my eyes, We can't commit to glide until we can On Tue, Apr 12, 2016 at 11:43 PM, Sam Boyer notifications@github.com
|
@thockin briefly, "this" is the problem of doing in-place updates in The in-place approach was originally taken as a performance optimization. When people aren't committing their vendor dirs, the harm is at least less obvious, because the whole We're working...feverishly! (I just committed the |
Sounds great - though an out-of-place rebuild of vendor/ which gets swapped I'm happy to sit on it for a bit, but I just wanted to be very clear that On Wed, Apr 13, 2016 at 10:38 AM, Sam Boyer notifications@github.com
|
@thockin There are a couple things we'll be doing.
The work your doing on kubernetes also gave me an idea for a plugin (some of which makes sense to roll into Glide). You'll see more of me on this stuff next week. Having working compatibility with 4 VCS can take more time than I'd like. |
For your amusement - I got some pushback to do the move to vendor/ separately from the move to glide. I tried. I can't - we still have some deps that use path rewrites and godep isn't smart enough to un-rewrite itself. But Glide is. Or would be if |
I managed to convert our tree to a vendor dir, but now many people are asking "what about glide"? So what about it... |
I believe this particular problem's essentially addressed now in the vsolver PR, #384, at least for They're really the hard part, and having them means the system fundamentally works - we can solve, and write out a vendor tree. Converting Help is always welcome 😄 |
The So, if there is a problem in the middle of resolving it exits without mangling the I'm going to close this issue out now that the original problem are, I think, all fixed. If not please open new issues. |
I got my repo all building with glide, and then added a dep (to test and document).
This produced a lot of output and these errors:
glide then exited, leaving my tree a mess. I have new directories that I don't know why, I have a ton of modified files, and I have new deps listed in glide.lock (totally unrelated stuff). Note that the dep I imported has ZERO external imports.
Now I am stuck. I don't know why glide did what it did, and I don't know how to proceed. I can get my repo back to a sane state, but how do I import this one tiny dep?
Aside from wanting to know how to proceed, here's a chance for better messages explaining what's going on and why. Truthfully, I am not sure I understand why glide is doing so much work here - I didn't ask for
--all-dependencies
The text was updated successfully, but these errors were encountered: