This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(status): skip ignored pkgs in missing pkgs chk
This change skips the root packages from missing package check if there's a path to the corresponding package in manifest's ignored list. `digestMismatch` is removed from `runStatusAll()`. When there's a digest mismatch, it's an error. And we already log to stderr but never returned an actual error. `errInputDigestMismatch` is now returned as error when there's a digest mismatch. Some refactoring in how we handle the returned info from `runStatusAll()` and show the errors and their solutions.
- Loading branch information
Showing
7 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
cmd/dep/testdata/harness_tests/status/ignore_lock_mismatch/final/Gopkg.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
cmd/dep/testdata/harness_tests/status/ignore_lock_mismatch/final/Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignored = ["github.com/sdboyer/deptestdos"] | ||
|
9 changes: 9 additions & 0 deletions
9
cmd/dep/testdata/harness_tests/status/ignore_lock_mismatch/initial/Gopkg.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
cmd/dep/testdata/harness_tests/status/ignore_lock_mismatch/initial/Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignored = ["github.com/sdboyer/deptestdos"] | ||
|
8 changes: 8 additions & 0 deletions
8
cmd/dep/testdata/harness_tests/status/ignore_lock_mismatch/initial/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package main | ||
|
||
import ( | ||
_ "github.com/sdboyer/deptestdos" | ||
) | ||
|
||
func main() { | ||
} |
7 changes: 7 additions & 0 deletions
7
cmd/dep/testdata/harness_tests/status/ignore_lock_mismatch/testcase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"commands": [ | ||
["status"] | ||
], | ||
"error-expected": "inputs-digest mismatch", | ||
"vendor-final": [] | ||
} |