Skip to content

2.7.0

Choose a tag to compare

@sebsto sebsto released this 23 Feb 16:10
· 46 commits to main since this release
6aa4387

The archive plugin now supports Apple's container CLI as an alternative to Docker for building Lambda deployment packages.

Pass --container-cli container to use it instead of the default Docker path. The plugin translates commands accordingly, using container image pull and container run under the hood.

To use it:

swift package --disable-sandbox --allow-network-connections docker archive --container-cli container

Note that even when using Apple's container CLI, you still need to pass --allow-network-connections docker on the command line. This is a SwiftPM limitation, not something the plugin controls. In a future version, SPM will not prompt for specific authorization when --disable-sandbox is specified (see swiftlang/swift-package-manager#9763)

Docker remains the default. If you don't pass --container-cli, nothing changes.

What's Changed

SemVer Minor

Full Changelog: 2.6.3...2.7.0