Skip to content
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

Merged
merged 8 commits into from
Mar 3, 2021

Conversation

miggs597
Copy link
Contributor

Just adding the convenience init .package(url: String, revision: String)

Also includes updated tests, and documentation
@tomerd
Copy link
Contributor

tomerd commented Feb 25, 2021

@swift-ci please smoke test

@tomerd tomerd added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Feb 25, 2021
@miggs597
Copy link
Contributor Author

@swift-ci please smoke test

@miggs597
Copy link
Contributor Author

@swift-ci please smoke test

1 similar comment
@miggs597
Copy link
Contributor Author

@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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this say revision?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still say "branch" ^^

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this say revision?

Copy link
Contributor Author

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

@tomerd
Copy link
Contributor

tomerd commented Feb 27, 2021

@swift-ci please smoke test

Miguel Perez added 2 commits March 1, 2021 12:07
As it's intended for a next version of Package Description
@miggs597
Copy link
Contributor Author

miggs597 commented Mar 1, 2021

@swift-ci please smoke test

@miggs597
Copy link
Contributor Author

miggs597 commented Mar 1, 2021

@swift-ci please smoke test

@tomerd tomerd merged commit 8be835a into swiftlang:main Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants