-
Notifications
You must be signed in to change notification settings - Fork 540
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
maybe, undesired dependency update after glide get #518
Comments
I agree with @mh-cbon. I expect |
Yeah, we need to find a sensible way to determine which things to update on I'm not sure whether to wait for @sdboyer 's resolver change or whether to try to do this before that. Thoughts, @sdboyer? |
(the issue I usually refer wrt this problem is #252. it's the same basic underlying issue, even though it's not @technosophos It's hard to say. On the one hand, I'm honestly not sure how difficult it would be to control this in glide as-is. My guess would be that it might be fairly gnarly, but it could be reasonably straightforward. On the other, Personally, I'd prefer to see the effort that would go into solving this maybe-knotty problem instead invested in getting |
Hi,
It looks likes glide undesirably updated a dependency after i did a glide get.
This is the command i ran,
this is the glide.yaml diff
this is the glide.lock diff
I added
semver
to my dependencies, and i gotgolang.org/x/sys
updated.You can check the commits here, the dependency was updated to latest commit.
I see no obvious reason to update it, semver does not rely on it, others dependency already known at that time did not change.
My understanding is that because there is no versions on
golang.org/x/sys
, glide always take latest when it updates.I advocate this behavior is probably not desirable when a commit is already set.
Yesterday i faced the same problem with another repo, another dependency, this is the problematic commit.
It was relying on
https://github.com/google/go-github
, this repo does not use any version, and recently they implemented a breaking change see this change.Because glide fetched the latest commit, my build did not work anymore.
Some thoughts about that,
If one of the versioned dependency explicitly set a revision commit, i guess glide should follow it, and hang in case of diamond situation.
The dependency does not use version, is yet unknown in the dependency graph, take latest.
The dependency is already known in the dependency graph, via glide.lock for example, it should not be changed unless a commit is explicitly set by one dependency.
The text was updated successfully, but these errors were encountered: