Starting on November 12, 2020 we will no longer install a default Swift version for all builds.
Previously, all build environments included Swift 5.2. With this change, users will need to specify that a build requires Swift in one of three ways:
- Set the
SWIFT_VERSIONenvironment variable to the desired version.
- Include a
.swift-versionfile in the build directory.
- Include a
Package.swiftfile in the build directory. If no
SWIFT_VERSIONenvironment variable is present, we’ll default to installing version 5.2.
If it’s not already present in the build cache, the required Swift version will be installed during the next build and cached for future builds.
We’re making this change because installing Swift by default made our default build image much bigger and it was used by relatively few customers. Installing fewer dependencies in our build containers means builds start up faster for most customers.
If you have questions or concerns, please let us know in the comments and we’ll be happy to address them.
Note: This release was moved from November 11th to November 12th to avoid releasing on a U.S. holiday.