From 45b2ecede70ea24ffea0d6d6a7768d0de99ea9fa Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 3 Dec 2026 03:00:47 +1300 Subject: [PATCH] on-dev fix: copy back source files only, never target/ (the exclude came after the '*/' include, so rsync's first match copied target's generated .rs too); .gitignore ignores every target/, app/'s included --- .gitignore | 2 +- scripts/on-dev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ab4a962c..9b9cb6ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/target +target/ **/node_modules /tmp .env diff --git a/scripts/on-dev b/scripts/on-dev index e405c658..5247fa63 100755 --- a/scripts/on-dev +++ b/scripts/on-dev @@ -105,7 +105,7 @@ case $cmd in sync run cargo clippy -q --locked -j 24 --workspace --all-targets --fix --allow-dirty --allow-no-vcs "$@" || true run cargo fmt --all - rsync -a --no-owner --no-group --include='*/' --include='*.rs' --exclude='*' --exclude=target "$host:$remote/" "$dir/" + rsync -a --no-owner --no-group --exclude=target --include='*/' --include='*.rs' --exclude='*' "$host:$remote/" "$dir/" ;; lock) sync; run cargo generate-lockfile; rsync -a "$host:$remote/Cargo.lock" "$dir/Cargo.lock" ;; clean) ssh "$host" "rm -rf '$remote'" ;;