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

Improve package caching #32

Merged
merged 3 commits into from
Jun 16, 2024
Merged

Improve package caching #32

merged 3 commits into from
Jun 16, 2024

Conversation

erikreinert
Copy link
Member

@erikreinert erikreinert commented Jun 15, 2024

Changes

  • updates caching for either proxy or build service

- Commented out unused `std::env` import in `vorpal.rs`.
- Added validation for empty source hash, name, and signature in `run_prepare.rs`.
- Refactored `run_prepare.rs` to remove redundant checks and improve readability.
- Introduced `validate_hashes` and `send_source` functions in `package/mod.rs` for better separation of concerns.
- Updated `prepare` function in `package/mod.rs` to use the new helper functions.
- Changed file permissions for package tar files to `0o440` in `package/mod.rs`.
- Renamed variables for clarity and consistency in `archives.rs`.
@erikreinert erikreinert self-assigned this Jun 15, 2024
- Uncommented the `use std::env` statement.
- Renamed the `request` variable to `coreutils` and added logic to process its stream.
- Uncommented and updated the `example` package request logic.
- Ensured both `coreutils` and `example` package requests are processed correctly.
…ndling

- Removed redundant references to `workdir_path` and `name` in function calls.
- Replaced string comparison with `is_empty()` for better readability and performance.
@erikreinert erikreinert merged commit d3e53f4 into main Jun 16, 2024
4 checks passed
@erikreinert erikreinert deleted the feature/improve-caching branch June 16, 2024 00:03
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.

1 participant