Skip to content

Commit

Permalink
Swift 5.6.2 support and friendly messages about 22.04 (#71)
Browse files Browse the repository at this point in the history
* Add support for Swift 5.6.1 and 5.6.1

* Warn users about the lack of heroku-22 stack support
  • Loading branch information
vzsg authored Jun 21, 2022
1 parent 5040516 commit f0cc16a
Show file tree
Hide file tree
Showing 54 changed files with 307 additions and 59 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ $ heroku create --buildpack vapor/vapor

$ git push heroku master
remote: -----> Swift app detected
remote: -----> Using Swift 5.6 (default)
remote: -----> Using built-in clang (Swift 5.6)
remote: -----> Using Swift 5.6.2 (default)
remote: -----> Using built-in clang (Swift 5.6.2)
remote: -----> Installing swiftenv
remote: -----> Installing Swift 5.6
remote: -----> Installing Swift 5.6.2
...
```

Expand Down Expand Up @@ -50,7 +50,7 @@ web: Run --env=production --port=$PORT

### Specify a Swift version

The buildpack defaults to Swift 5.6 and will be updated when new Swift versions are released.
The buildpack defaults to Swift 5.6.2 and will be updated when new Swift versions are released.

If you need to use a specific version of the Swift toolchain, including older versions – for example Swift 4.2.x to retain compatibility with Swift 3 projects, you can pin that version number using a file called `.swift-version` in the root of the project folder, or by setting a `SWIFT_VERSION` configuration variable on Heroku, then deploying again.

Expand Down
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV_DIR=$3

CLANG_VERSION=7.0.1

SWIFT_VERSION="5.6"
SWIFT_VERSION="5.6.2"
SWIFT_BUILD_CONFIGURATION="release"
SWIFT_BUILD_FLAGS=""

Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/3.0
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-3.0-release/ubuntu1510/swift-3.0-RELEASE/swift-3.0-RELEASE-ubuntu15.10.tar.gz"
;;

'ubuntu16.04' | 'ubuntu18.04' | 'ubuntu20.04')
'ubuntu16.04' | 'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 3.0 does not support Ubuntu 16.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/3.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-3.0.1-release/ubuntu1604/swift-3.0.1-RELEASE/swift-3.0.1-RELEASE-ubuntu16.04.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 3.0.1 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/3.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-3.0.2-release/ubuntu1604/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-ubuntu16.04.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 3.0.2 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/3.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-3.1-release/ubuntu1610/swift-3.1-RELEASE/swift-3.1-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 3.1 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/3.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-3.1.1-release/ubuntu1610/swift-3.1.1-RELEASE/swift-3.1.1-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 3.1.1 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.0
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.0-release/ubuntu1610/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.0 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.0.2-release/ubuntu1610/swift-4.0.2-RELEASE/swift-4.0.2-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.0.2 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.0.3-release/ubuntu1610/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.0.3 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.1-release/ubuntu1610/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.1 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.1.1-release/ubuntu1610/swift-4.1.1-RELEASE/swift-4.1.1-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.1.1 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.1.2-release/ubuntu1610/swift-4.1.2-RELEASE/swift-4.1.2-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.1.2 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
2 changes: 1 addition & 1 deletion swiftenv/share/swiftenv-install/4.1.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.1.3-release/ubuntu1610/swift-4.1.3-RELEASE/swift-4.1.3-RELEASE-ubuntu16.10.tar.gz"
;;

'ubuntu18.04' | 'ubuntu20.04')
'ubuntu18.04' | 'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.1.3 does not support Ubuntu 18.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/4.2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.2-release/ubuntu1804/swift-4.2-RELEASE/swift-4.2-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.2 does not support Ubuntu 20.04."
echo " ! Swift 4.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/4.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.2.1-release/ubuntu1804/swift-4.2.1-RELEASE/swift-4.2.1-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.2.1 does not support Ubuntu 20.04."
echo " ! Swift 4.2.1 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/4.2.2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.2.2-release/ubuntu1804/swift-4.2.2-RELEASE/swift-4.2.2-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.2.2 does not support Ubuntu 20.04."
echo " ! Swift 4.2.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/4.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.2.3-release/ubuntu1804/swift-4.2.3-RELEASE/swift-4.2.3-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.2.3 does not support Ubuntu 20.04."
echo " ! Swift 4.2.3 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/4.2.4
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-4.2.4-release/ubuntu1804/swift-4.2.4-RELEASE/swift-4.2.4-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 4.2.4 does not support Ubuntu 20.04."
echo " ! Swift 4.2.4 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.0
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.0-release/ubuntu1804/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.0 does not support Ubuntu 20.04."
echo " ! Swift 5.0 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.0.1-release/ubuntu1804/swift-5.0.1-RELEASE/swift-5.0.1-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.0.1 does not support Ubuntu 20.04."
echo " ! Swift 5.0.1 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.0.2-release/ubuntu1804/swift-5.0.2-RELEASE/swift-5.0.2-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.0.2 does not support Ubuntu 20.04."
echo " ! Swift 5.0.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.0.3-release/ubuntu1804/swift-5.0.3-RELEASE/swift-5.0.3-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.0.3 does not support Ubuntu 20.04."
echo " ! Swift 5.0.3 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.1-release/ubuntu1804/swift-5.1-RELEASE/swift-5.1-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.1 does not support Ubuntu 20.04."
echo " ! Swift 5.1 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.1.1-release/ubuntu1804/swift-5.1.1-RELEASE/swift-5.1.1-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.1.1 does not support Ubuntu 20.04."
echo " ! Swift 5.1.1 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.1.2-release/ubuntu1804/swift-5.1.2-RELEASE/swift-5.1.2-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.1.2 does not support Ubuntu 20.04."
echo " ! Swift 5.1.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.1.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.1.3-release/ubuntu1804/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.1.3 does not support Ubuntu 20.04."
echo " ! Swift 5.1.3 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.1.4
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.1.4-release/ubuntu1804/swift-5.1.4-RELEASE/swift-5.1.4-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.1.4 does not support Ubuntu 20.04."
echo " ! Swift 5.1.4 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.1.5
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.1.5-release/ubuntu1804/swift-5.1.5-RELEASE/swift-5.1.5-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.1.5 does not support Ubuntu 20.04."
echo " ! Swift 5.1.5 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.2
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.2-release/ubuntu1804/swift-5.2-RELEASE/swift-5.2-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.2 does not support Ubuntu 20.04."
echo " ! Swift 5.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.2-branch/ubuntu1804/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-20-a/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-20-a-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.2 does not support Ubuntu 20.04."
echo " ! Swift 5.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.2-branch/ubuntu1804/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-23-a/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-23-a-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.2 does not support Ubuntu 20.04."
echo " ! Swift 5.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.2.1-release/ubuntu1804/swift-5.2.1-RELEASE/swift-5.2.1-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.2.1 does not support Ubuntu 20.04."
echo " ! Swift 5.2.1 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.2.2
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.2.2-release/ubuntu1804/swift-5.2.2-RELEASE/swift-5.2.2-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.2.2 does not support Ubuntu 20.04."
echo " ! Swift 5.2.2 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
4 changes: 2 additions & 2 deletions swiftenv/share/swiftenv-install/5.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ case "$PLATFORM" in
URL="https://swift.org/builds/swift-5.2.3-release/ubuntu1804/swift-5.2.3-RELEASE/swift-5.2.3-RELEASE-ubuntu18.04.tar.gz"
;;

'ubuntu20.04')
'ubuntu20.04' | 'ubuntu22.04' )
echo
echo " ! Swift 5.2.3 does not support Ubuntu 20.04."
echo " ! Swift 5.2.3 does not support Ubuntu 20.04, nor any later versions of the Heroku stack."
echo " ! Please update your project to a more recent version of Swift."
echo " !"
echo " ! You can also downgrade your stack for the time being (not recommended),"
Expand Down
Loading

0 comments on commit f0cc16a

Please sign in to comment.