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

Fix httpFileLoader to only return an error when a problem has occurred #127

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

ptzianos
Copy link
Contributor

@ptzianos ptzianos commented Apr 8, 2024

Fixes #126

@ptzianos ptzianos requested a review from northdpole April 8, 2024 15:09
@ptzianos ptzianos force-pushed the ptzianos/remote-task-files branch 2 times, most recently from 9cc4084 to 1143f7c Compare April 8, 2024 15:30
…y#126)

This commit moves some code away from the build command, that manages
the loading of the base pipeline, task and the pipeline tasks into a
separate piece of code that lives in the same directory as the Tekton
backend. Some tests are also added to the codebase testing the correct
returning of errors. Finally, it fixes the issue where the
httpFileLoader returns an error wrapping a nil error even if the file
has been fetched from the remote source correctly.

Signed-off-by: Pavlos Tzianos <[email protected]>
@ptzianos ptzianos force-pushed the ptzianos/remote-task-files branch from 1143f7c to 4d9fee8 Compare April 8, 2024 18:05
@ptzianos ptzianos merged commit 4d9fee8 into smithy-security:main Apr 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not return error when remote file is fetched correctly
3 participants