Skip to content
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

Return error on non-200 responses #686

Merged
merged 3 commits into from
Jun 21, 2022
Merged

Return error on non-200 responses #686

merged 3 commits into from
Jun 21, 2022

Conversation

vicmarbev
Copy link
Contributor

Handle http errors as specified in #682. The resolution is the same as in carvel-dev/kapp#523

@vicmarbev
Copy link
Contributor Author

The linter fails with:
pkg/files/sources.go:91:1: exported: exported function NewHTTPSource should have comment or be unexported (revive) func NewHTTPSource(path string) HTTPSource { return HTTPSource{path, &http.Client{}} }
but this function already existed. Should I add a comment?

@cppforlife
Copy link
Contributor

Should I add a comment?

yeah, linter is a bit too strict.

Signed-off-by: Víctor Martínez Bevià <vicmarbev@gmail.com>
Copy link
Contributor

@gcheadle-vmware gcheadle-vmware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've read through the referenced issue in kapp, and can confirm that these changes are identical to the change made in the kapp repo. Everything looks good to me 👍

Signed-off-by: Víctor Martínez Bevià <vicmarbev@gmail.com>
Copy link
Member

@praveenrewar praveenrewar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pivotaljohn
Copy link
Contributor

Thanks, @vicmarbev!

@pivotaljohn pivotaljohn merged commit f2ee904 into carvel-dev:develop Jun 21, 2022
@pivotaljohn
Copy link
Contributor

Published in v0.42.0.

@github-actions github-actions bot added the carvel triage This issue has not yet been triaged for relevance label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
carvel triage This issue has not yet been triaged for relevance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants