Skip to content

chore: rename crate and binary osm-diffs → osmdiffs - #803

Merged
brawer merged 1 commit into
mainfrom
chore/rename-crate-to-osmdiffs
Sep 10, 2026
Merged

brawer merged 1 commit into
mainfrom
chore/rename-crate-to-osmdiffs

Conversation

@brawer

@brawer brawer commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Final step of the repo move: the Rust crate, the binary artifact, and every identifier derived from them now match github.com/brawer/osmdiffs.

What changed

  • Cargo.toml package name → osmdiffs; Cargo.lock regenerated; osm_diffs:: → osmdiffs:: in src/main.rs.
  • Log output: the target field is now osmdiffs::… (updated in the Hetzner pipeline.log fixture and docs/LOGGING.md). No code parses it, but it's the visible consequence of the crate rename.
  • Containerfile: build WORKDIR /usr/osmdiffs, binary → /app/osmdiffs, ENTRYPOINT ["/app/osmdiffs"].
  • Tests: cargo_bin!("osmdiffs") ×6, cargo test -p osmdiffs.
  • Provenance BOM (provenance.rs): tool component name + every internal bom-ref (tool-osmdiffs, formula-osmdiffs-build, workflow-osmdiffs-build, trigger-osmdiffs-schedule) and the matching test assertions.
  • SBOM scripts: cargo cyclonedx output file osmdiffs_bin.cdx.json, the osmdiffs:sbom:devBuild metadata property, comments.
  • Hetzner / macOS test tooling ("everything, consistently"): systemd unit names (osmdiffs-run, osmdiffs-monitor), local podman image tag + Hetzner VM label key (osmdiffs-test), REMOTE_DIR /root/osmdiffs, extracted binary paths, --version check.
  • Docs prose and stray comments (deny.toml, pr-title-lint.yml).

Left unchanged (deliberate)

  • The frozen UUIDv5 seed URLs in provenance.rs (SERIAL_NAMESPACE) and datapackage.rs (ID) — still github.com/alltheplaces/osm-diffs, as they were after chore: update in-repo references for the move to brawer/osmdiffs #802. Those constants must never be regenerated.
  • The clap display name #[command(name = "diffed-places-pipeline")] — a separate identity, not osm-diffs.
  • The local dev checkout path in the gitignored .claude/settings.local.json.

Operational note

Any Hetzner test VM currently running under the old osm-diffs-test label will be invisible to cloud_test.py after this merges (label key changed). None expected to be running.

Testing

cargo test --locked (263 + 6), cargo clippy --locked, cargo fmt --check, and the Hetzner pytest suite (81) all pass. The container build (which regenerates the SBOM and would fail loudly on a wrong osmdiffs_bin.cdx.json name) runs in CI here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADxF1ZE2j9Ki51fiJQQLVo

Completes the repo move: the crate, the binary artifact, and every
name derived from them now match github.com/brawer/osmdiffs.

- `Cargo.toml` package name -> `osmdiffs`; `Cargo.lock` regenerated;
  `osm_diffs::` -> `osmdiffs::` in `src/main.rs`. Log `target` fields
  are now `osmdiffs::...` (reflected in the Hetzner `pipeline.log`
  fixture and `docs/LOGGING.md`).
- `Containerfile`: build WORKDIR `/usr/osmdiffs`, binary copied to
  `/app/osmdiffs`, `ENTRYPOINT ["/app/osmdiffs"]`.
- Tests: `cargo_bin!("osmdiffs")`, `cargo test -p osmdiffs`.
- Provenance BOM: tool component `name` and every `bom-ref`
  (`tool-osmdiffs`, `formula-osmdiffs-build`, ...) plus test assertions.
- SBOM scripts: `osmdiffs_bin.cdx.json`, the `osmdiffs:sbom:devBuild`
  property, and comments.
- Hetzner / macOS test tooling, per the "everything, consistently"
  choice: systemd unit names (`osmdiffs-run`, `osmdiffs-monitor`), the
  local podman image tag and VM label key (`osmdiffs-test`),
  `REMOTE_DIR` `/root/osmdiffs`, binary paths.
- Docs and stray comments.

Left unchanged:
- The frozen UUIDv5 seed URLs in `provenance.rs` / `datapackage.rs`
  (still `alltheplaces/osm-diffs`, as before -- the constants must not
  be regenerated).
- The local dev checkout path in the gitignored
  `.claude/settings.local.json`.

`cargo test --locked`, `cargo clippy --locked`, `cargo fmt`, and the
Hetzner pytest suite all pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADxF1ZE2j9Ki51fiJQQLVo
@brawer
brawer enabled auto-merge (squash) September 10, 2026 15:22
@brawer
brawer disabled auto-merge September 10, 2026 15:22
@brawer
brawer merged commit 1fe3f31 into main Sep 10, 2026
11 checks passed
@brawer
brawer deleted the chore/rename-crate-to-osmdiffs branch September 10, 2026 15:40
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