Skip to content

Commit

Permalink
Merge 1889544 into 2ae453d
Browse files Browse the repository at this point in the history
  • Loading branch information
evandcoleman authored Sep 23, 2021
2 parents 2ae453d + 1889544 commit 807395e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Scipio/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extension Command {
.init(
commandName: "Scipio",
abstract: "A program to pre-build and cache Swift packages",
version: "0.2.0",
version: "0.2.1",
subcommands: [
Command.Build.self,
Command.Upload.self,
Expand Down
7 changes: 6 additions & 1 deletion Sources/ScipioKit/Cache Engines/HTTPCacheEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ extension HTTPCacheEngineProtocol {
promise(.failure(HTTPCacheEngineError.requestFailed(statusCode: statusCode, body: String(data: data ?? Data(), encoding: .utf8) ?? "")))
} else {
do {
promise(.success(try CachedArtifact(name: artifact.name, parentName: artifact.parentName, url: request.url!, localPath: artifact.path)))
promise(.success(try CachedArtifact(
name: artifact.name,
parentName: artifact.parentName,
url: downloadUrl(for: artifact.name, version: artifact.version),
localPath: artifact.path
)))
} catch {
promise(.failure(error))
}
Expand Down

0 comments on commit 807395e

Please sign in to comment.