From 7f644236158f66fcc106ec55e437ebf28ee1cca1 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Thu, 27 Aug 2026 21:52:25 +0700 Subject: [PATCH] fix(build): perbaiki referensi paket zesdex-gateway di Dockerfile & default.nix - Dockerfile & default.nix: ganti zesdex-backend -> zesdex-gateway (binary zesdex) - flake.nix & default.nix: versi 1.13.0 -> 1.18.2 mengikuti Cargo.toml - chore(ci): drop cargo build --release dari check job, tambah cargo fmt --check --- .github/workflows/ci.yml | 12 ++++++------ Dockerfile | 2 +- default.nix | 4 ++-- flake.nix | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 041156c..98d63f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,11 +21,11 @@ jobs: with: components: clippy - - name: Build workspace - run: cargo build --release --workspace - - - name: Test workspace - run: cargo test --workspace + - name: Format check + run: cargo fmt --all -- --check - name: Clippy workspace - run: cargo clippy --workspace -- -D warnings + run: cargo clippy --workspace --all-targets -- -D warnings + + - name: Test workspace + run: cargo test --workspace \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b893b06..93f0656 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /app COPY . . # Build with release profile (treats warnings as errors via lints) -RUN cargo build --release -p zesdex-backend --bin zesdex +RUN cargo build --release -p zesdex-gateway --bin zesdex # Stage 2: Minimal runtime image FROM debian:bookworm-slim diff --git a/default.nix b/default.nix index 43b1044..a9d2e20 100644 --- a/default.nix +++ b/default.nix @@ -2,14 +2,14 @@ pkgs.rustPlatform.buildRustPackage { pname = "zesdex"; - version = "1.13.0"; + version = "1.18.2"; src = ./.; cargoLock = { lockFile = ./Cargo.lock; }; - cargoBuildFlags = [ "-p" "zesdex-backend" "--bin" "zesdex" ]; + cargoBuildFlags = [ "-p" "zesdex-gateway" "--bin" "zesdex" ]; nativeBuildInputs = with pkgs; [ pkg-config ]; buildInputs = with pkgs; [ openssl sqlite ]; diff --git a/flake.nix b/flake.nix index c84dff6..41626d9 100644 --- a/flake.nix +++ b/flake.nix @@ -34,7 +34,7 @@ packages.default = pkgs.rustPlatform.buildRustPackage { pname = "zesdex"; - version = "1.13.0"; + version = "1.18.2"; src = ./.; cargoLock = {