-
Notifications
You must be signed in to change notification settings - Fork 542
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
Find outdated dependencies and update them #356
Comments
A couple things.
You shouldn't have to remove a dependency to update it. Glide does that for you. |
That is precisely what I want glide.yaml: package: tt
import:
- package: github.com/juju/errors glide.lock: hash: c5d0b5564bb639895d120e9a72eb397a6eb6efc23a772e808c9a49e20db395de
updated: 2016-03-28T02:44:51.503697917+02:00
imports:
- name: github.com/juju/errors
version: 797449fa4bdba2948dfc581cdc3acf625272a8d6
devImports: [] glide update
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for github.com/juju/errors.
[INFO] Resolving imports
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references for remaining imports
[INFO] Project relies on 1 dependencies.
# Still on 797449...
glide install
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for github.com/juju/errors.
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references.
[INFO] Setting version for github.com/juju/errors to 797449fa4bdba2948dfc581cdc3acf625272a8d6.
glide -v
glide version 0.10.1 |
I'm rather confused. I just started with this package: tt
import:
- package: github.com/juju/errors It was created using hash: c5d0b5564bb639895d120e9a72eb397a6eb6efc23a772e808c9a49e20db395de
updated: 2016-03-27T20:59:57.085268681-04:00
imports:
- name: github.com/juju/errors
version: b2c7a7da5b2995941048f60146e67702a292e468
devImports: [] This does have the latest commit. This is using Glide 0.10.1. I wish I could reproduce your issue. Does your git client have a cache? Glide drops down to |
I made up a new If you don't have a previous |
Are you using |
Both; though I only expected
|
Out of curiosity, if you set |
It works with |
Hmmm, I believe you found a bug. It should work the same with |
See also #327 |
To help when updating dependencies. Right now I have to manually check if there is a new commit, get the hash, write it and update. A command like
npm outdated
would be very useful.At least reinstall the dependency from zero if asked to do it; e.g.:
glide get foo.com/bar
to get the latest version, like the first time I used it. Currently it warns: "Package "foo.com/bar" is already in glide.yaml. Skipping". It does not have to beget
, another different command can be added too.Also if you don't specify a version in
glide.yaml
; you have to remember to delete the entry inglide.lock
beforeglide update
. It's confusing.The text was updated successfully, but these errors were encountered: