diff --git a/.gitignore b/.gitignore index c16c209..6750b70 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ /Packages /*.xcodeproj /*.pins +/*.resolved /*.linux diff --git a/Package.swift b/Package.swift index 388bef9..5422aaa 100644 --- a/Package.swift +++ b/Package.swift @@ -1,10 +1,16 @@ -// swift-tools-version:3.1 - import PackageDescription +import Foundation + +let url: String +if let cache = getenv("URL_PERFECT"), let local = String(validatingUTF8: cache) { + url = "\(local)/Perfect-CURL" +} else { + url = "https://github.com/PerfectlySoft/Perfect-CURL.git" +} let package = Package( name: "PerfectAWS", dependencies: [ - .Package(url: "https://github.com/PerfectlySoft/Perfect-CURL.git", majorVersion: 2) + .Package(url: url, majorVersion: 3) ] )