Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ You can now run `dep` from inside a package in your `GOPATH` to vendor all its d
35
35
36
36
``` bash
37
37
$ dep init
38
- $ dep ensure -update
38
+ $ dep ensure
39
39
```
40
40
41
- To update a dependency to a new version, you might run
41
+ To update a dependency to a new version, you might update ` Gopkg.toml ` and run:
42
42
43
43
``` bash
44
- $ dep ensure github.com/pkg/errors@^0.8.0
44
+ $ dep ensure
45
45
```
46
46
47
47
### Exercise: managing dependencies
@@ -57,10 +57,10 @@ Running this will create:
57
57
You should never edit ` vendor ` or ` Gopkg.lock ` directly, instead you should edit ` Gopkg.toml `
58
58
and use the ` dep ` binary.
59
59
60
- Let's ensure that we are using the version 1.0.0 of ` logrus ` in our ` vendor ` directory. Simply run:
60
+ Let's ensure that we are using the version 1.0.0 of ` logrus ` in our ` vendor ` directory. Simply change the stanza in ` Gopkg.toml ` and run:
61
61
62
62
``` bash
63
- $ dep ensure github.com/Sirupsen/logrus@1.0.0
63
+ $ dep ensure
64
64
```
65
65
66
66
Did you see any changes in any of the files mentioned above? Try using a different version of ` logrus ` from
0 commit comments