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

fix(status): skip ignored pkgs in missing pkgs chk #1216

Merged
merged 3 commits into from
Oct 4, 2017

Conversation

darkowlzz
Copy link
Collaborator

What does this do / why do we need it?

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.

What should your reviewer look out for in this PR?

The refactoring and error handling.

Do you need help or clarification on anything?

No.

Which issue(s) does this PR fix?

fixes #1193

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.
This change removes the usage of IgnoredPackages() separately and passes
the same to ToReachMap(), which returns the packages with all ignoring
rules applied.
@sdboyer sdboyer merged commit 0edac3f into golang:master Oct 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

status shows incorrect reason for lock mismatch
4 participants