fix: stop unnecessary rebuild on every CLI invocation (#3435) (#3491)

This commit is contained in:
Eric Seidel
2026-01-30 22:55:40 -08:00
committed by GitHub
parent 08538d22a3
commit 5430ed2eb0
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -155,6 +155,10 @@ function upgrade_shorebird () (
export PUB_ENVIRONMENT="$PUB_ENVIRONMENT:shorebird_install"
pub_get_with_retry
# pub get may not update pubspec.lock's mtime if dependencies are unchanged,
# which would cause the pubspec.yaml -nt pubspec.lock check above to keep
# triggering a rebuild on every invocation.
touch "$SHOREBIRD_ROOT/pubspec.lock"
# Move the old snapshot - we can't just overwrite it as the VM might currently have it
# memory mapped (e.g. on shorebird upgrade). For downloading a new dart sdk the folder is moved,