File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1608,6 +1608,7 @@ extension Workspace {
1608
1608
let tempDiagnostics = DiagnosticsEngine ( )
1609
1609
1610
1610
var authProvider : AuthorizationProviding ? = nil
1611
+ var didDownloadAnyArtifact = false
1611
1612
#if os(macOS)
1612
1613
// Netrc feature currently only supported on macOS 10.13+ due to dependency
1613
1614
// on NSTextCheckingResult.range(with:)
@@ -1636,7 +1637,7 @@ extension Workspace {
1636
1637
}
1637
1638
let archivePath = parentDirectory. appending ( component: parsedURL. lastPathComponent)
1638
1639
1639
-
1640
+ didDownloadAnyArtifact = true
1640
1641
downloader. downloadFile (
1641
1642
at: parsedURL,
1642
1643
to: archivePath,
@@ -1684,7 +1685,10 @@ extension Workspace {
1684
1685
}
1685
1686
1686
1687
group. wait ( )
1687
- delegate? . didDownloadBinaryArtifacts ( )
1688
+
1689
+ if didDownloadAnyArtifact {
1690
+ delegate? . didDownloadBinaryArtifacts ( )
1691
+ }
1688
1692
1689
1693
for diagnostic in tempDiagnostics. diagnostics {
1690
1694
diagnostics. emit ( diagnostic. message, location: diagnostic. location)
You can’t perform that action at this time.
0 commit comments