refactor(version): consume dunite-update-check, drop bunyip copy #496

Merged
nrupard merged 1 commit from feat/DEV-530-consume-update-check into main 2026-08-06 18:27:20 +02:00
Owner

What

Consumes the dunite-update-check leaf crate (dunite #38, DEV-530) and removes bunyip's copy.

  • version.rs keeps the bunyip-specific version identity - current_version() (the compiled version) and git_revision() (the BUNYIP_GIT_SHA build SHA) - and re-exports UpdateChecker / UpdateStatus from dunite_update_check. The local UpdateChecker / UpdateStatus / cache / semver helpers and their unit tests are removed (parity tests live in the crate). Every crate::version::{UpdateChecker, UpdateStatus} path (routes/version.rs, main.rs) is unchanged.
  • main.rs construction now passes the two new config args: UpdateChecker::new(url, token, current_version().to_string(), "bunyip-api/<ver>").

Pins

Adds dunite-update-check at 1f536a2 as a leaf dep (no dunite-core dep), so it pins independently and does not move the dunite-core graph rev.

Validation

just check-container green: cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace --all-targets.

#DEV-530

## What Consumes the `dunite-update-check` leaf crate (dunite #38, DEV-530) and removes bunyip's copy. - `version.rs` keeps the bunyip-specific version identity - `current_version()` (the compiled version) and `git_revision()` (the `BUNYIP_GIT_SHA` build SHA) - and re-exports `UpdateChecker` / `UpdateStatus` from `dunite_update_check`. The local `UpdateChecker` / `UpdateStatus` / cache / semver helpers and their unit tests are removed (parity tests live in the crate). Every `crate::version::{UpdateChecker, UpdateStatus}` path (routes/version.rs, main.rs) is unchanged. - `main.rs` construction now passes the two new config args: `UpdateChecker::new(url, token, current_version().to_string(), "bunyip-api/<ver>")`. ## Pins Adds `dunite-update-check` at `1f536a2` as a leaf dep (no dunite-core dep), so it pins independently and does not move the dunite-core graph rev. ## Validation `just check-container` green: `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace --all-targets`. #DEV-530
refactor(version): consume dunite-update-check, drop bunyip copy
All checks were successful
E2E / PR gate (pull_request) Successful in 25s
Check / fmt + clippy + build + tests (pull_request) Successful in 15m50s
Create release / Create release from merged PR (pull_request) Has been skipped
a2b18e45a2
The self-hosted update checker moved to the dunite-update-check leaf crate (dunite #38, DEV-530).

version.rs keeps bunyip's version identity - current_version() and git_revision() - and re-exports UpdateChecker / UpdateStatus from dunite_update_check; the local UpdateChecker/UpdateStatus/cache/semver helpers and their tests are removed (parity in the crate). The main.rs construction passes the new config args: current_version() + the bunyip User-Agent. Every crate::version::{UpdateChecker, UpdateStatus} path is unchanged.

Adds dunite-update-check at 1f536a2 as a leaf dep (no dunite-core dep), pinned independently.

#DEV-530
nrupard scheduled this pull request to auto merge when all checks succeed 2026-08-06 18:14:32 +02:00
nrupard deleted branch feat/DEV-530-consume-update-check 2026-08-06 18:27:20 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/bunyip!496
No description provided.