package(name:path:)
Adds a local dependency to a named package located at the path you provide.
Declaration
static func package(name: String, path: String) -> Package.DependencyParameters
- name:
The name of the Swift package.
- path:
The file system path to the package.
Return Value
A package dependency.
Discussion
If the package you depend on defines traits, the package manager uses the dependency with its default set of traits.
Swift Package Manager uses the package dependency as-is and doesn’t perform any source control access. Local package dependencies are especially useful during development of a new package or when working on multiple tightly coupled packages.