Skip to content

Commit

Permalink
feat: add the original library url as a mirror when CH reports incorr…
Browse files Browse the repository at this point in the history
…ect data
  • Loading branch information
MichaelHillcox committed Jun 8, 2024
1 parent 4443f6d commit f3421c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ private DownloadTask downloadTaskFor(Path librariesDir, LibraryDownload artifact

// Build the URL ourselves to use the CH maven instead of the provided 'url' attribute
return DownloadTask.builder()
.url(url)
.url(url) // Prefer the ch mirror but fallback to the provided url.
.withMirror(artifact.url)
.dest(librariesDir.resolve(artifact.path))
.withValidation(validation)
.build();
Expand Down

0 comments on commit f3421c3

Please sign in to comment.