-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for .package(url: String, revision: String) syntax #3310
Conversation
Also includes updated tests, and documentation
@swift-ci please smoke test |
@swift-ci please smoke test |
@swift-ci please smoke test |
1 similar comment
@swift-ci please smoke test |
@@ -81,7 +81,24 @@ extension Package.Dependency { | |||
) -> Package.Dependency { | |||
return .init(name: name, url: url, requirement: .branch(branch)) | |||
} | |||
|
|||
|
|||
/// Adds a remote package dependency given a branch requirement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this say revision?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still say "branch" ^^
Documentation/PackageDescription.md
Outdated
@@ -306,6 +306,16 @@ static func package(url: String, _ requirement: Package.Dependency.Requirement) | |||
/// - branch: A dependency requirement. See static methods on `Package.Dependency.Requirement` for available options. | |||
static func package(name: String? = nil, url: String, branch: String) -> Package.Dependency | |||
|
|||
/// Adds a remote package dependency given a branch requirement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this say revision?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you're right, thanks for catching that
@swift-ci please smoke test |
As it's intended for a next version of Package Description
@swift-ci please smoke test |
@swift-ci please smoke test |
Just adding the convenience init .package(url: String, revision: String)