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
@@ -141,6 +141,10 @@ function Update-Shorebird {
Push-Location $shorebirdCliDir
& $dart pub get
Pop-Location
# pub get may not update pubspec.lock's mtime if dependencies are unchanged,
# which would cause the pubspec.yaml -gt pubspec.lock check to keep
# triggering a rebuild on every invocation.
(Get-Item "$shorebirdRootDir/pubspec.lock").LastWriteTime = Get-Date
Write-Output "Compiling shorebird..."