Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cmd/dep/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ func runStatusAll(ctx *dep.Ctx, out outputter, p *dep.Project, sm gps.SourceMana
var digestMismatch, hasMissingPkgs bool

if p.Lock == nil {
// TODO if we have no lock file, do...other stuff
return digestMismatch, hasMissingPkgs, nil
return digestMismatch, hasMissingPkgs, errors.Errorf("no Gopkg.lock found. Run `dep ensure` to generate lock file")
}

// While the network churns on ListVersions() requests, statically analyze
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commands": [
["status"]
],
"error-expected": "no Gopkg.lock found. Run `dep ensure` to generate lock file"
}