-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #53 #54
Fixes #53 #54
Conversation
cmd/enval.go
Outdated
for _, err := range errs { | ||
{ | ||
ok = false | ||
prettyPrintError(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the info was already printed. This must just exit 1 without printing as soon as one is not valid
pkg/manifestchecker/types.go
Outdated
@@ -175,6 +175,20 @@ func (result *ToolValidationResult) NotParseableVersionOutputCommand(msg string) | |||
return result | |||
} | |||
|
|||
func (result *ToolValidationResult) CheckErrors() []error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function should be just IsValid returning result.IsToolAvailable && result.IsVersionValid && result.IsCommandVersionOutputParseable
pkg/exerrors/extended_error.go
Outdated
@@ -40,6 +40,8 @@ const ( | |||
UnsupportedInputRawVersionEnvalErrorKind | |||
FieldVersionKeyNotFoundEnvalErrorKind | |||
InvalidCustomSpecsDirEnvalErrorKind | |||
InvalidVersionErrorKind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
pkg/exerrors/extended_error.go
Outdated
@@ -40,6 +40,8 @@ const ( | |||
UnsupportedInputRawVersionEnvalErrorKind | |||
FieldVersionKeyNotFoundEnvalErrorKind | |||
InvalidCustomSpecsDirEnvalErrorKind | |||
InvalidVersionErrorKind | |||
CommandVersionOutputNonParseableErrorKind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
e7c50ef
to
5267079
Compare
5267079
to
27fafc5
Compare
No description provided.