Skip to content

Commit

Permalink
Merge pull request JohnSundell#24 from pixyzehn/add-enable-prefetchin…
Browse files Browse the repository at this point in the history
…g-flag-for-scripts-within-marathon

Enable prefetching for scripts within Marathon
  • Loading branch information
JohnSundell authored Apr 3, 2017
2 parents 4ccc866 + 8f6139c commit fd3e909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/MarathonCore/PackageManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ internal final class PackageManager {
private func updatePackages() throws {
do {
try generateMasterPackageDescription()
try generatedFolder.moveToAndPerform(command: "swift package update")
try generatedFolder.moveToAndPerform(command: "swift package --enable-prefetching update")
try generatedFolder.createSubfolderIfNeeded(withName: "Packages")
} catch {
throw Error.failedToUpdatePackages(folder)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MarathonCore/Script.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal final class Script {

func build(withArguments arguments: [String] = []) throws {
do {
let command = "swift build " + arguments.joined(separator: " ")
let command = "swift build --enable-prefetching " + arguments.joined(separator: " ")
try folder.moveToAndPerform(command: command)
} catch {
throw formatBuildError(error as! Process.Error)
Expand Down

0 comments on commit fd3e909

Please sign in to comment.