Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Document how to upgrade a specific package #877

Closed
carolynvs opened this issue Jul 21, 2017 · 7 comments
Closed

Document how to upgrade a specific package #877

carolynvs opened this issue Jul 21, 2017 · 7 comments

Comments

@carolynvs
Copy link
Collaborator

The README explains how to update everything but now how to update a single package. There is already explanation in the help text for this (see dep ensure -examples) but its a common enough case that we should highlight it. Let's add info on dep ensure -update foo and dep ensure -update [email protected] in the README as well, so that people are more likely to know that it exists.

@stephenafamo
Copy link
Contributor

Can I work on this @carolynvs

@carolynvs
Copy link
Collaborator Author

@stephenafamo Yup! FYI, in the future no need to ask if no one else has "claimed" it yet. Just leave a comment that you are going to work on it. 😀

@stephenafamo
Copy link
Contributor

How is dep ensure -update [email protected] supposed to work.
I keep getting
version constraint ^1.2.0 passed for github.com/some/package, but -update follows constraints declared in Gopkg.toml, not CLI arguments

@stephenafamo
Copy link
Contributor

@carolynvs please take a look at the comment above

@darkowlzz
Copy link
Collaborator

darkowlzz commented Sep 16, 2017

@stephenafamo I don't think specifying a version constraint to -update is supported yet. The help says:

update the named dependencies (or all, if none are named) in Gopkg.lock to the latest allowed by Gopkg.toml (default: false)

"allowed by Gopkg.toml", so it refers to the constraint defined in Gopkg.toml. And that's the error you're get.

But I see it would be supported in a way in the future TODO.

@stephenafamo
Copy link
Contributor

Okay. That's nice to know. It was confusing given the first post on this thread.

@carolynvs
Copy link
Collaborator Author

The issue was created before ensure was re-written. @stephenafamo Sorry I didn't catch that when you asked about this one a few days ago... 😞 I should have noticed and saved you some wasted time.

Closing as the README now does explain how to update a single package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants