Releases: swiftlang/swift-package-manager
Releases · swiftlang/swift-package-manager
Swift 5.10.1 Release
What's Changed
- [5.10] Fix test runner build on WASI by @kateinoigakukun in #7351
- [5.10] Fix non-tarballed SDK installation with remote URL (#7312) by @kateinoigakukun in #7321
- Bump the Swift version to 5.10.1 by @shahmishal in #7636
Full Changelog: swift-5.10-RELEASE...swift-5.10.1-RELEASE
Swift 5.10 Release
Notable Changes
-
On macOS,
swift build
andswift run
now produce binaries that allow backtraces in debug builds. PassSWIFT_BACKTRACE=enable=yes
environment variable to enable backtraces on such binaries when running them. -
Binary artifacts are now cached alongside repository checkouts so they do not need to be re-downloaded across projects.
Merged Pull Requests
- Plugin import scanner isn't passing in the library directory, making
canImport
not work by @abertelrud in #6323 - Destinations: fix missing
remove
command message by @MaxDesiatov in #6319 - Mark types conforming to
FileSystem
asSendable
by @MaxDesiatov in #6318 - rdar://105991217 (Make macros testable) by @neonichu in #6312
- Rearrangement in preparation for 5.9 branching by @neonichu in #6309
- Use new shorthand syntax for unwrapping optionals by @sheikhbayazid in #6329
- Basics: clean up
DiagnosticsEngine
inObservability
by @MaxDesiatov in #6333 - better diagnostics when potentially duplicate packages are found by @tomerd in #6317
- improve diagnostics when registry configuration is broken by @tomerd in #6331
- better diagnostics for networking errors by @tomerd in #6330
- update docker compose with new swift versions by @tomerd in #6332
- Reduce errors from manifest signature validation by @yim-lee in #6325
- Fix compilation error in Swift 5.7.2 by @yim-lee in #6341
- cleanup mirror config command by @tomerd in #6339
- Destinations: throw error on duplicate artifact ID by @MaxDesiatov in #6343
- Package manifest checksum TOFU by @yim-lee in #6322
- Add 5.8 release notes by @tomerd in #6347
- Add templates for build tool plugins and command plugins by @neonichu in #6111
- PackageLoading: anchor relative paths for Windows by @compnerd in #6345
- change validation to throw instead of pre-condition to avoid crashes by @tomerd in #6354
- Fix deprecation warning in
PackageBuilder.swift
by @MaxDesiatov in #6360 - Do not pollute home directory with test data by @neonichu in #6364
- NFC: fix comment typo in
ZipArchiver
by @MaxDesiatov in #6366 - Expected signing entity verification by @neonichu in #6359
- Cross-compilation: fix bundles not unpacked on installation by @MaxDesiatov in #6361
- Support Target Grouping by @elsh in #6356
- Update registry service spec per SE-0391 by @yim-lee in #6275
- Include signing entity in version metadata by @neonichu in #6363
- rdar://107033737 (Expose
PackageVersionMetadata
fromPackageSearchClient
) by @neonichu in #6351 - [NFC] BuildOperation.swift: fix comment typo by @MaxDesiatov in #6379
- PackageModel, CoreCommands: fix build flags not passed by @MaxDesiatov in #6380
- Basics: add support for
.tar.gz
archives by @MaxDesiatov in #6368 - Fix product lookup by @neonichu in #6376
- Documentation on registry usage by @yim-lee in #6373
- Set a default value to the group param for a macro target by @elsh in #6384
- Basics: support multiple formats with a single archiver by @MaxDesiatov in #6369
- Fix symlinked
swift-experimental-destination
invocations by @MaxDesiatov in #6382 - Tests: use
FileManager
instead ofcp
by @compnerd in #4872 - PackageSigning: mark
SigningEntityType
asSendable
by @MaxDesiatov in #6390 - Basics: make
supportedExtensions
inUniversalArchiver
constant by @MaxDesiatov in #6388 - PackageModelTests: fix warnings in
DestinationBundleTests
by @MaxDesiatov in #6391 - sort identities from url lookup to make lookup result consistent by @tomerd in #6397
- Basics: allow reusing cancellator handlers from
SwiftTool
by @MaxDesiatov in #6396 - Package: adjust the package definition for Windows by @compnerd in #6394
- Add a minimal test for the PD macro API by @neonichu in #6399
- On ELF platforms, only add runpaths as needed by @finagolfin in #6321
- ManifestSourceGeneration incorrectly writes out
DriverKit
instead ofdriverKit
by @abertelrud in #6405 - Add author to collection package release metadata by @yim-lee in #6408
- Add publication time to registry package release metadata by @yim-lee in #6407
- Destinations: use
UniversalArchiver
ininstall
command by @MaxDesiatov in #6392 - Improve Swift Macro template by @ahoppen in #6410
- A few fixes for building SwiftPM for MacCatalyst by @neonichu in #6414
- Add author and signer to package collection models by @yim-lee in #6415
- Fix iOS buid by @neonichu in #6419
- Format test target in the macro package consistently with other targets by @ahoppen in #6421
- Bump SwiftPM's minimum deployment target to macOS 12 by @neonichu in #6138
- Use exact SwiftCrypto version to work around self-hosting failure by @MaxDesiatov in #6428
- Update CODEOWNERS by @neonichu in #6432
- Re-enable disabled tests by @neonichu in #6422
- Basics: remove
AsyncFileSystem
as unused by @MaxDesiatov in #6436 - Rename "CC Destination" to "Swift SDK" by @MaxDesiatov in #6424
- Update to swift-crypto 2.4.1 by @yim-lee in #6431
- Build: fix duplicate
case
ofswitch
inBuildPlan.swift
by @MaxDesiatov in #6389 - Expose
SigningEntity
via package metadata by @neonichu in #6442 - fix functional test by @tomerd in #6437
- Change
testPluginCanBeReferencedByProductName
by @neonichu in #6443 - refactor RelativePath to allow late stage canonicalization in support of windows by @tomerd in #5910
- bootstrap: fix use of deprecated
-Xmanifest
flag by @MaxDesiatov in #6435 - quiet down redundant warnings for binary targets with multiple info.plist by @tomerd in #6445
- Update BUG_REPORT.yml by @compnerd in #6449
- Newly created build tool and command plugin templates should have conditional support for XcodeProjectPlugin by @abertelrud in #6446
- Tests: adjust windows librarian test slightly by @compnerd in #6450
- NFC: 5.9 Documentation update. by @zkiraly in #6434
- Supplemental fix for XcodeProjectPlugin support in package init template by @abertelrud in #6451
- BuildTests: remove some likely debugging leftovers by @compnerd in #6457
- Update macro API by @neonichu in #6459
- WorkspaceTests: simplify constant cons...
swift-5.9.2-RELEASE
Bump the Swift version to 5.9.2 (#7175)
0.6.0
[Package.swift] Require swift-llbuild and swift-tools-support-core us… …ing semver dependencies
swift-5.1.5-RELEASE: Merge pull request #2663 from aciidb0mb3r/fix-install-name
[bootstrap] Use the right install name for PackageDescription
Swift 5.2 Release
[PackageGraph] Fix package name validation for product target depende… …ncies The package name validation was wrong for product target dependencies (`.product(name: "<product>", package: "<package>")`) as we were looking up the package using its identity instead of the name. This completely breaks package loading in 5.2 if a package wants to use a product from a dependency that doesn't match the package name of that dependency. <rdar://problem/59821906> (cherry picked from commit e3a880b310e5ded7e19a0f8cb3ca91f5e1e777a9)
0.5.0
0.4.0: Update dependency requirement of llbuild
This updates dependency on llbuild to be at 0.1.0 so SwiftPM can be used as a package dependency.
0.3.0: Merge pull request #1768 from ahoppen/show-bin-path-4.2
[4.2] Add option to show bin build directory (cherry-pick #1763)
swift-4.2.2-RELEASE: Merge pull request #1768 from ahoppen/show-bin-path-4.2
[4.2] Add option to show bin build directory (cherry-pick #1763)