@@ -297,11 +297,13 @@ def bake():
297297 log("verify:", (r.stdout or "").strip().replace("\n", " | "))
298298 # Rust and a warm cargo cache, so a widget ticket builds in seconds, not minutes.
299299 log("pre-building the widget library")
300- tar = subprocess.run(["tar", "-C", str(REPO / "templates"), "-cf", "-", "library"], capture_output=True, check=True).stdout
300+ # In ~/work, where agents build: cargo fingerprints workspace crates by path.
301+ tar = subprocess.run(["tar", "-C", str(REPO / "templates"), "--exclude=library/target", "-cf", "-", "library"],
302+ capture_output=True, check=True).stdout
301303 subprocess.run(["ssh", "-i", str(KEY), "-p", str(ssh_port("bake")), "-o", "BatchMode=yes", "-o", "StrictHostKeyChecking=no",
302- "-o", "UserKnownHostsFile=/dev/null", "-o", "LogLevel=ERROR", f"{USER}@127.0.0.1", "tar -xf - -C /tmp"], input=tar, check=True)
303- r = ssh("bake", "rustup default 1.99.1 >/dev/null 2>&1 && cd /tmp/library && CARGO_TARGET_DIR=$HOME/.cache/conveyor-target "
304- "cargo build --release -p preview 2>&1 | tail -1 && rm -rf /tmp/library", check=False)
304+ "-o", "UserKnownHostsFile=/dev/null", "-o", "LogLevel=ERROR", f"{USER}@127.0.0.1", "tar -xf - -C /tmp && mv /tmp/library ~/work"], input=tar, check=True)
305+ r = ssh("bake", "rustup default 1.99.1 >/dev/null 2>&1 && cd ~/work && CARGO_TARGET_DIR=$HOME/.cache/conveyor-target "
306+ "cargo build --release -p preview 2>&1 | tail -1; cd && rm -rf ~/work", check=False)
305307 log("library:", (r.stdout or r.stderr or "").strip())
306308 # Reset what must be unique per overlay, then shut down clean.
307309 ssh("bake", f"echo {PASS} | sudo -S sh -c 'rm -f /etc/ssh/ssh_host_* && : > /etc/machine-id && fstrim -a'", check=False)