swiftlang/swift-package-collection-generator
A **package collection** ([SE-0291](https://github.com/apple/swift-evolution/blob/main/proposals/0291-package-collections.md))
Installation
Currently, the package collection generator is a standalone tool that's not integrated with the Swift toolchain. To use it from the command line, first build the project from source by cloning the repository and running the following from the root directory:
swift build --configuration releaseThen, either run the final executables directly (e.g., .build/release/package-collection-generate) or install them on your system path:
install .build/release/package-collection-generate /usr/local/bin/package-collection-generate
install .build/release/package-collection-diff /usr/local/bin/package-collection-diff
install .build/release/package-collection-sign /usr/local/bin/package-collection-sign
install .build/release/package-collection-validate /usr/local/bin/package-collection-validateFinally, another way to run the tool is via swift run, which builds and runs the specified executable. For example:
swift run package-collection-generatePackage Collection Format
Package collections can be created and published by anyone. To make sure SwiftPM can consume them, all package collections must adhere to the same format. See the v1 format for details.
Generating a Package Collection
package-collection-generate is a Swift command-line tool that helps generate package collections.
Validating a Package Collection
package-collection-validate is a Swift command-line tool that validates package collections against the defined format.
- This should be run against the final output generated by the
package-collection-generatecommand.
Comparing Package Collections
package-collection-diff is a Swift command-line tool that compares two package collections to determine if they are different from each other.
Contributing to Swift Package Collection Generator
Contributions to this repo are welcomed and encouraged! Please see the Contributing to Swift guide.
To be a truly great community, Swift.org needs to welcome developers from all walks of life, with different backgrounds, and with a wide range of experience. A diverse and friendly community will have more great ideas, more unique perspectives, and produce more great code. We will work diligently to make the Swift community welcoming to everyone.
To give clarity of what is expected of our members, Swift has adopted the code of conduct defined by the Contributor Covenant. This document is used across many open source communities, and we think it articulates our values well. For more, see the Code of Conduct.
Package Metadata
Repository: swiftlang/swift-package-collection-generator
Default branch: main
README: README.md