Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 75a5a74

Browse files
committedMay 31, 2018
removing git dep ensure -update; edit toml instead
1 parent 28b4ab0 commit 75a5a74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎1-source-code/1-workspace/3-deps.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ You can now run `dep` from inside a package in your `GOPATH` to vendor all its d
3535

3636
```bash
3737
$ dep init
38-
$ dep ensure -update
38+
$ dep ensure
3939
```
4040

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:
4242

4343
```bash
44-
$ dep ensure github.com/pkg/errors@^0.8.0
44+
$ dep ensure
4545
```
4646

4747
### Exercise: managing dependencies
@@ -57,10 +57,10 @@ Running this will create:
5757
You should never edit `vendor` or `Gopkg.lock` directly, instead you should edit `Gopkg.toml`
5858
and use the `dep` binary.
5959

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:
6161

6262
```bash
63-
$ dep ensure github.com/Sirupsen/logrus@1.0.0
63+
$ dep ensure
6464
```
6565

6666
Did you see any changes in any of the files mentioned above? Try using a different version of `logrus` from

0 commit comments

Comments
 (0)
Failed to load comments.