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

Commit 2eda538

Browse files
committed
document lock mismatch state for ensure
Signed-off-by: Miguel Molina <[email protected]>
1 parent bcfa7ee commit 2eda538

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ for one or more dependencies, do the following:
109109

110110
### Checking the status of dependencies
111111

112+
Run `dep status` to see the current status of all your dependencies.
113+
112114
```sh
113115
$ dep status
114116
PROJECT CONSTRAINT VERSION REVISION LATEST
@@ -117,6 +119,20 @@ github.com/Masterminds/vcs ^1.11.0 v1.11.1 3084677 3084
117119
github.com/armon/go-radix * branch master 4239b77 4239b77
118120
```
119121

122+
On top of that, if you have added new imports to your project or modified the manifest file without running `dep ensure` again, `dep status` will tell you there is a mismatch between the lock file and the current status of the project.
123+
124+
```sh
125+
$ dep status
126+
Lock inputs-digest mismatch due to the following packages missing from the lock:
127+
128+
PROJECT MISSING PACKAGES
129+
github.com/Masterminds/goutils [github.com/Masterminds/goutils]
130+
131+
This happens when a new import is added. Run `dep ensure` to install the missing packages.
132+
```
133+
134+
As `dep status` suggests, run `dep ensure` to update your lockfile. Then run `dep status` again, and the lock mismatch should go away.
135+
120136
### Updating dependencies
121137

122138
(to the latest version allowed by the manifest)

0 commit comments

Comments
 (0)