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

Add proxy service #9

Merged
merged 8 commits into from
Jun 6, 2024
Merged

Add proxy service #9

merged 8 commits into from
Jun 6, 2024

Conversation

erikreinert
Copy link
Member

Added

  • build.proto and package.proto for gRPC services
  • BuildService and PackageService definitions
  • PackageRequest and PackageResponse messages
  • vorpal-example Rust project with dependencies
  • vorpal.rs example client for BuildService
  • process-compose-flake input in flake.nix
  • service module with build and proxy submodules
  • start functions for build and proxy services

Changed

  • Updated build.rs to compile new proto files
  • Renamed builder module to service::build
  • Updated command module to include Service commands

Removed

  • Package message from package.proto

- 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.
@erikreinert erikreinert self-assigned this Jun 6, 2024
- 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.
@erikreinert erikreinert changed the title Add build and proxy services Add proxy service Jun 6, 2024
@erikreinert erikreinert merged commit 04dfd59 into main Jun 6, 2024
2 checks passed
@erikreinert erikreinert deleted the feature/config-service branch June 6, 2024 08:53
@erikreinert erikreinert added this to the 0.1.0 milestone Jan 3, 2025
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