From d5764fce7bc490e676cd322a58782763f6d19c27 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Thu, 19 Nov 2026 20:48:03 +0100 Subject: [PATCH] Deploy from main checkout, not the worktree phone_deploy refuses a production install from a worktree (exit 49), so the board's deploy of this repo always failed on the phone target. Todo: 2556952d Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 3 ++- pubspec.yaml | 2 +- scripts/deploy.sh | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 539b00d..abf01eb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -50,7 +50,8 @@ and sync peer-to-peer through a GitHub repo used as dumb storage. - lint: `flutter analyze` - coverage: `flutter test --coverage --reporter=compact` - coverage-gaps: `coverage-gaps coverage/lcov.info` -- deploy: `scripts/deploy.sh` (MCP service, desktop pacman package, phone release; exits non-zero unless every health check passes) +- deploy: `git -C ~/src/todo pull --ff-only && ~/src/todo/scripts/deploy.sh` (MCP service, desktop pacman package, phone release; + exits non-zero unless every health check passes; runs from the main checkout because phone_deploy refuses a worktree, exit 49) ## Architecture diff --git a/pubspec.yaml b/pubspec.yaml index 3199848..ed0a828 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.101+1 +version: 1.0.102+1 environment: sdk: ^3.12.2 diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 4647272..785fa10 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -22,8 +22,9 @@ # version means equal code); the MCP binary is cheap and always rebuilt. # # Nothing live runs from ~/src/todo (the MCP is a frozen binary, the desktop -# app lives in /opt/todo), so this deploys the checkout it sits in and never -# pulls kuhy's working tree. +# app lives in /opt/todo), so this deploys the checkout it sits in. The +# declared deploy (CLAUDE.md) fast-forwards ~/src/todo and runs from there: +# phone_deploy refuses a production install from a worktree (exit 49). # ============================================================================ set -euo pipefail