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: evaluate return_code from rctx.execute() call when fetching package indexes #46

Conversation

alexconrey
Copy link
Contributor

@alexconrey alexconrey commented May 8, 2024

Problem

The rctx.execute() call when fetching package indexes does not evaluate the tool's return code. This allows for weirdness should an archive be uploaded to an HTTP server which was improperly compressed or contains otherwise invalid data.

Solution

Evaluate the return code from the executing tools. Both tools return non-zero codes when an error is reached.

@thesayyn
Copy link
Collaborator

Could you rebase?

@alexconrey alexconrey force-pushed the alexconrey/packages-decompress-eval-exitcode-success branch from 35a417d to bf57211 Compare May 22, 2024 16:34
@alexconrey
Copy link
Contributor Author

@thesayyn think this is ready for another glance. Sorry for the delay!

@alexconrey alexconrey force-pushed the alexconrey/packages-decompress-eval-exitcode-success branch from bf57211 to 54fb5de Compare May 22, 2024 16:38
@thesayyn thesayyn merged commit 4589854 into GoogleContainerTools:main May 22, 2024
7 checks passed
@thesayyn
Copy link
Collaborator

Thank you!

@alexconrey alexconrey deleted the alexconrey/packages-decompress-eval-exitcode-success branch May 22, 2024 17:42
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.

None yet

2 participants