-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add proxy service #9
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Updated `flake-parts` to revision `2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8` with new `narHash` `sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=`. - Updated `nixpkgs` to revision `57610d2f8f0937f39dbd72251e9614b1561942d8` with new `narHash` `sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=`. - Updated `nixpkgs-lib` tarball URL to `https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz` with new `narHash` `sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=`.
- Introduced `cli.proto` defining `CliService` with `Package` RPC. - Added `PackageRequest` and `PackageResponse` messages. - Updated `build.rs` to compile new proto file. - Created example Rust project with `Cargo.toml`, `.gitignore`, and `main.rs`. - Implemented `vorpal.rs` to demonstrate CLI service usage. - Updated `flake.nix` and `flake.lock` to include `process-compose-flake`. - Refactored command module to include `Package` and `Service` commands. - Moved builder module to `service/build` and added `service/proxy`. - Implemented proxy service to handle package requests.
Renamed the `cli.proto` file to `build.proto` and updated the package name from `vorpal.cli.v0` to `vorpal.build.v0`. Updated all references to `CliService` to `BuildService` in the codebase, including the build script, example client, library module, and proxy service. This change reflects the new naming convention and improves clarity in the service's purpose.
- Added `build_deps` and `install_deps` fields to `PackageRequest` in `build.proto`. - Removed `Package` message from `package.proto`. - Updated `BuildRequest` in `package.proto` to include `build_deps` and `install_deps`. - Modified `build.rs` to configure and compile proto files. - Updated `Cargo.lock` with new dependencies. - Enhanced `vorpal.rs` to handle new `PackageRequest` structure. - Removed `Package` command from CLI in `mod.rs`. - Added logging for build dependencies in `build/mod.rs`. - Refactored `package/mod.rs` to use updated `PackageRequest` and handle dependencies.
- Removed unused dependencies from Cargo.lock: - form_urlencoded - idna - tinyvec - tinyvec_macros - unicode-bidi - unicode-normalization - url - Updated build phase messages in vorpal.rs: - Changed "hello, world!" to "foo" in the first build phase - Changed "hello, world!" to "bar" in the second build phase - Removed debug print statements for `foo` and `bar` source IDs in vorpal.rs
- Consolidate build_phase commands into single-line strings for both 'foo' and 'bar' packages. - Update install_phase commands to single-line strings, removing unnecessary mkdir commands for 'foo' and 'bar' packages.
- Introduced a new package request for 'baz' with build and install phases. - Updated the 'bar' package request to store the result in a variable. - Modified the 'bar' install phase to simplify the copy command. - Added 'baz' package request with 'bar' as an install dependency. - Included additional ignore paths for 'baz' package request.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
build.proto
andpackage.proto
for gRPC servicesBuildService
andPackageService
definitionsPackageRequest
andPackageResponse
messagesvorpal-example
Rust project with dependenciesvorpal.rs
example client forBuildService
process-compose-flake
input inflake.nix
service
module withbuild
andproxy
submodulesstart
functions forbuild
andproxy
servicesChanged
build.rs
to compile new proto filesbuilder
module toservice::build
command
module to includeService
commandsRemoved
Package
message frompackage.proto