-
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
feature request: glide up
takes an argument and only updates that package
#252
Comments
This is similar to what I was referring to in #249 ; Ability to separate the processing of imports, whether from There is an argument that could be made that if you version pinned things in a semantic versioning way, that it shouldn't matter if the latest of that version range was pulled in because it should be compatible. That is idealistic though, and reality is sometimes you want to just upgrade one dependency. Especially if your QA process requires verification of every dependency change for a release. |
@colemickens There are two steps to an update in Glide. There are the direct dependencies of the local codebase and then there are the dependencies of the dependencies to form the tree. When we update a direct dependency the dependency tree needs to be re-resolved for any changes. This makes updating just a single dependency difficult. Or rather, it means to make it simple isn't so simple. We used to have something sorta like this feature. I had not realized it was dropped. We should put something smart back. @technosophos is there a reason i don't know that we dropped this? |
I'd like this, too. It's annoying to find that |
There should be a |
I've gotten around this by removing the version number in the lock file for a package that I want to update more frequently than the others. Deleting the package files from the vendor directory followed by I agree it would really be nice to have |
@mattfarina Any update om this? It's truly annoying to have to undo changes to Sometimes I just give up and commit the whole file because I don't know the transitive relationships between packages. For example, if I add a new dependency X, and |
@atombender it turns out this is more difficult than it seems when you default to versions and ranges. To do this you need to update the one dependency and then walk the tree to make sure the transitive dependencies are picked up and all the versions mesh. Are you using versions or ranges in your PRs are welcome. |
Not using versions/ranges. I should be, of course, but I've been simply relying on |
Similar things being discussed in #368
Try specifying it with a trailing
I agree, that would be a mistake...but are you using the most recent glide? Because Worth noting that this is one of the things that switching to the vsolver engine will address. (I almost wonder if we should have a tag for these) |
@sdboyer Thanks, I didn't know about the hash syntax. If I use that syntax, it adds the version. Without the hash, it doesn't (I'm using 0.10.2). I would argue that it ought to add a version constraint (NPM uses Secondly, it raises the question of how to find the version in the first place. Right now, the workflow seems to require that I go to Github (or wherever), and look for a
(Where is this stuff documented?) Perhaps there could be a flag to get the latest semantic version, or maybe something like |
Is anyone working on this actively? |
@IvanMalison AFAIK it's not being worked on in the current mainline branch, but it's basically solved in the new engine (#384). (This specific thing is possible, but there's an underlying issue that cropped up which I'm working out before I can commit it.) |
I’m not really happy that this is foisted on me. onsi/gomega#123 I can also no longer get `glide install` after adding one new dep to `glide.yaml` by hand to stop updating SHAs for everything, I give up: Masterminds/glide#252 This should all hopefully eventually get fixed by Masterminds/glide#384
Just updating to note that, yes, this is one of the single most-requested bits of functionality in glide right now - and it is fixed in the new, gps-based version of glide, that we hope to be the next big release - v0.13.0. There's still a fair bit of work between here and there, though; if you want to make it happen sooner, we could use your help! You can look at the project, or #565 in particular has a lot of individual items. Ping me (@sdboyer) in gitter or on slack if you think you may have some time, and there's nothing obvious to work on. |
So, for example,
glide up github.com/Azure/go-autorest
would update thego-autorest
dependency, without upgrading everything else in theglide.yaml
file.The text was updated successfully, but these errors were encountered: