From 68b1f76cd4048528e2541fe02dee29f4ca1b0fb3 Mon Sep 17 00:00:00 2001 From: "supeng.charlie" Date: Tue, 19 Sep 2023 17:55:44 +0800 Subject: [PATCH] prebuild should run artifactsOrganizer.prepare(artifact:) method even if artifacts exists locally --- Sources/XCRemoteCache/Commands/Prebuild/Prebuild.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/XCRemoteCache/Commands/Prebuild/Prebuild.swift b/Sources/XCRemoteCache/Commands/Prebuild/Prebuild.swift index fdc63787..f7668854 100644 --- a/Sources/XCRemoteCache/Commands/Prebuild/Prebuild.swift +++ b/Sources/XCRemoteCache/Commands/Prebuild/Prebuild.swift @@ -91,6 +91,7 @@ class Prebuild { switch artifactPreparationResult { case .artifactExists(let artifactDir): infoLog("Artifact exists locally at \(artifactDir)") + _ = try artifactsOrganizer.prepare(artifact: artifactDir) try artifactsOrganizer.activate(extractedArtifact: artifactDir) case .preparedForArtifact(let artifactPackage): infoLog("Downloading artifact to \(artifactPackage)")