Skip to content

Allow for .package(url: String, revision: String) syntax#3310

Merged
tomerd merged 8 commits into
swiftlang:mainfrom
miggs597:revision
Mar 3, 2021
Merged

Allow for .package(url: String, revision: String) syntax#3310
tomerd merged 8 commits into
swiftlang:mainfrom
miggs597:revision

Conversation

@miggs597

Copy link
Copy Markdown
Contributor

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

Also includes updated tests, and documentation
@tomerd

tomerd commented Feb 25, 2021

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor Author

@swift-ci please smoke test

@miggs597

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

1 similar comment
@miggs597

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

Comment thread Documentation/PackageDescription.md
Comment thread Sources/PackageDescription/PackageDependency.swift
}


/// Adds a remote package dependency given a branch requirement.

Copy link
Copy Markdown
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
Copy Markdown
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" ^^

Comment thread Documentation/PackageDescription.md Outdated
/// - 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
Copy Markdown
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
Copy Markdown
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

tomerd commented Feb 27, 2021

Copy link
Copy Markdown
Contributor

@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

miggs597 commented Mar 1, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@miggs597

miggs597 commented Mar 1, 2021

Copy link
Copy Markdown
Contributor Author

@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