chore(dev): point dev/cargo wrappers at the shared org builder image #108
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/use-rust-builder-glibc-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two related fixes after #106 merged:
ghcr.io/niceguyit/rust-builder-glibc:v1.0.0-rust1.94-trixie) instead of plainrust:1.94-slim-bookworm. The shared image is what every other repo under~/projects/a8n-run/builds in and is what CI actually runs (ci-build/Dockerfile.web,ci-build/Dockerfile.desktop-linux), so the local check now matches the CI environment one-for-one and never drifts through per-wrapperapt-get installlines.server/tests/db_mentions.rs: clippy 1.94 promotedcloned_ref_to_slice_refsunder-D warnings. Three&[x.clone()]constructions are rewritten tostd::slice::from_ref(&x).Changes
dev/cargorust:1.94-slim-bookworm->ghcr.io/niceguyit/rust-builder-glibc:v1.0.0-rust1.94-trixie.-v lets-chat-rewrite-rustup:/usr/local/rustupmount and the-e RUSTUP_HOME=...env. The image's baked rustup home already has rustfmt + clippy registered.cargo fmt --version || rustup component add ...fallback in the bash entrypoint, same reason.dev/cargo-desktopapt-get update && apt-get install ... libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev libssl-devstep. The shared image ships those packages (verified against~/projects/niceguyit/oci-images/rust-builder-glibc/Dockerfile).lets-chat-rewrite-desktop-aptvolume mount, no longer needed.dev/cargouses so files cargo writes into/work(eg. Cargo.lock) land owned by the host user instead of root. Previously this wrapper ran as root because ofapt-get; now that's no longer needed.server/tests/db_mentions.rs&[alice.clone()]/&[bob.clone()]arguments toreconcile_mentions(..., &[MentionRef])rewritten asstd::slice::from_ref(&alice)/std::slice::from_ref(&bob). Functionally identical, avoids theclone(), satisfies the new clippy 1.94 lint.The unused named volumes (
lets-chat-rewrite-rustup,lets-chat-rewrite-desktop-apt) can be removed manually withdocker volume rmwhenever convenient; nothing else in this repo references them.Test plan
just checkend-to-end is green: standalone clippy, saas clippy, desktop clippy, fmt-check. No warnings emitted.ghcr.io/niceguyit/rust-builder-glibc:v1.0.0-rust1.94-trixieand completes the check; subsequent runs are fully cached against the new image.