sector-f-linux

Sector F Linux
git clone https://git.sectorflabs.com/sector-f-linux.git
Log | Files | Refs | README | LICENSE

commit f17d44113d03ed7b6a4619e7c502b18009f787da
parent c0452b403462e0bd13808815aa4946fbc69a2360
Author: Divan Visagie <me@divanv.com>
Date:   Fri, 16 Oct 2026 10:43:09 +0200

Vendor patina-desktop's crates for the builds that can't reach remotes

patina-desktop now depends on patina-apps, a private git repository
fetched over ssh. The image's build container and the FreeBSD VM have no
key for it, so both builders run cargo vendor here and point cargo at the
copy. Built that way in both.

Diffstat:
Mfreebsd/stage.sh | 6++++++
Mlinux/desktop/build.sh | 5+++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/freebsd/stage.sh b/freebsd/stage.sh @@ -21,3 +21,9 @@ else git -C "$SRC" archive HEAD | tar -x -C "$DEST" echo "==> staged patina-desktop $(git -C "$SRC" rev-parse --short HEAD)" fi +# patina-apps is a private git dependency the VM can't fetch; vendor every +# crate here, where ssh reaches it, and point cargo at the copy. +(cd "$DEST" && cargo vendor --locked vendor > .cargo/config.toml.vendor 2> .cargo/vendor.log) || + { cat "$DEST/.cargo/vendor.log" >&2; exit 1; } +mv "$DEST/.cargo/config.toml.vendor" "$DEST/.cargo/config.toml" +echo "==> vendored its crates" diff --git a/linux/desktop/build.sh b/linux/desktop/build.sh @@ -44,6 +44,11 @@ if [[ -n "$worktree" ]]; then else git -C "$SRC" archive HEAD | tar -x -C "$BUILD/src" fi +# patina-apps is a private git dependency the container can't fetch; vendor +# every crate here, where ssh reaches it, and point cargo at the copy. +(cd "$BUILD/src" && cargo vendor --locked vendor > .cargo/config.toml.vendor 2> .cargo/vendor.log) || + { cat "$BUILD/src/.cargo/vendor.log" >&2; exit 1; } +mv "$BUILD/src/.cargo/config.toml.vendor" "$BUILD/src/.cargo/config.toml" # Cargo's downloads are kept in a volume, and its target folder in build/, so # rebuilds are incremental. As the user, so build/ stays theirs. docker run --rm --user "$(id -u):$(id -g)" \