CI (Windows): fetch git dependencies fresh; the host's cached fox_utils clone was stale
ci / core (push) Successful in 42s
ci / server (push) Successful in 1m17s
ci / updater-windows (push) Successful in 4m26s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
foxyzandClaude Opus 5.5 committed 2026-10-10 00:41:17 +03:00
1 parent bc96cb13d9
commit 84c5cda668
1 file changed
+12
+12
View File
@@ -25,6 +25,18 @@ function Invoke-Checked([string]$What, [scriptblock]$Cmd) {
}
if (-not $SkipBuild) {
# The host runner keeps the pub cache between jobs; its clone of a git
# dependency (fox_utils) went stale ("some refs were not updated") and
# resolved the wrong revision. Git deps are tiny: always fetch them fresh.
$PubCache = if ($env:PUB_CACHE) { $env:PUB_CACHE } else { Join-Path $env:LOCALAPPDATA 'Pub\Cache' }
foreach ($d in @((Join-Path $PubCache 'git'), (Join-Path $PubCache 'git\cache'))) {
Get-ChildItem -Path $d -Directory -Filter 'fox_utils*' -ErrorAction SilentlyContinue |
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
}
Push-Location $App
try {
Invoke-Checked 'flutter pub get' { flutter pub get }
} finally { Pop-Location }
Push-Location $App
try {
flutter build windows --release "--dart-define=APP_VERSION=$Version"