- Fetching a list of versions that can be installed (
swiftenv install --list
) will now fetch an updated list of versions.
- Prevent
swiftenv install
picking up on unrelated$URL
environment variables.
#170
-
You can now instruct
swiftenv install
to both locally and globally set the installed swift version.--set-local
and--set-global
respectively will set the current Swift version.The default behaviour will set the global version by default when
swiftenv install
was provided an explicit version. When installing with theSWIFT_VERSION
environment value or the.swift-version
file present, then the default behaviour is to not set the global or local version. -
When installing Swift from binary, swiftenv will now detect Ubuntu-based Linux distributions such as Elementary OS and use the appropriate binary image from swift.org.
-
On macOS,
swiftenv install
now accepts--user
command which allows you to install Swift into your home directory instead of requiring root.
-
On macOS,
swiftenv uninstall
would fail to uninstall some installed binary toolchains due to-RELEASE
being after the version in some paths that was unexpected. -
When using
swiftenv uninstall
, the command would fail if there was no global set version of swift. The command can now handle missing global version.
- New
--verify
option to swiftenv install to verify binary snapshots using GPG. This option expects that GPG is setup and configured to accept the Swift master keys. Verify can be forced with the environment variableSWIFTENV_VERIFY
. - Added local cache for Swift binaries for 3.0.2, 3.1, 3.1.1.
swiftenv install
will now resume any failed downloads instead of restarting the download process when restarting an install.swiftenv install --verbose
will now include verbose build output while compiling swift.- Adds build instructions for Swift 3.0, 3.0.1, 3.0.2, 3.1, 3.1.1, 3.0-dev, 3.1-dev and 4.0-dev.
- When building Swift from source, swiftenv will download tarballs instead of git cloning the repository resulting in faster download speed.
- Adds support for Fish 2.6.
-
Adds usage and summaries when using
swiftenv --help
with a subcommand. -
Adds a manpage for
swiftenv
andswiftenv-install
.$ man swiftenv $ man swiftenv-install
- Fixes detecting Swift release toolchains on macOS.
- Fixes an issue where
swiftenv install
wouldn't emit an error if it couldn't find instructions to install the given version.
- Only create shims for
swift*
andlldb*
binaries found within Xcode installs. Before we created shims for all executable tools found in Xcode and created shims for tools like ctags, cc, clang, etc. - Adds support for installing binary GM releases.
- Expose not found errors when using
swiftenv exec
against unknown commands. - Swift preview versions such as
3.0-preview-1
will be detected as binary versions when usingswiftenv install
.
- Add a
--skip-existing
/-s
flag toswiftenv install
to skip installation if version is already installed. - Adds support for Swift toolchains installed into
~/Library/Developer/Toolchains/
on OS X.
- Adds support for installing preview snapshots such as
3.0-preview-1-SNAPSHOT-2016-05-31-a
. swiftenv init
will now cause a rehash if the version of swiftenv has changed.
- Added
swiftenv install --list-snapshots
which shows you a list of snapshots for your platform.
- Adds support for building Swift 2.2.1 from source, and installing 2.2.1 development snapshots.
swiftenv uninstall
will now uninstall Swift toolchains on OS X.swiftenv uninstall
will now inform you if you're trying to uninstall a version of Swift bundled with Xcode.
- Supports installing final Swift releases such as
2.2
.
- Swift toolchains 'latest' version is no longer shown in
swiftenv versions
on OS X. - Fixes a problem where
swiftenv install
on Linux will incorrectly determine URL for the Swift binaries. - Adds a
--verbose
mode toswiftenv versions
to show where the version was installed.
-
The
swift-
prefix for versions is now optional. -
swiftenv install
now has a--list
option:$ swiftenv install --list
-
swiftenv install
is capable of building Swift2.2-dev
from source. -
swiftenv install
now takes URLs to a Swift binary package. -
swiftenv install
was updated to use the new binary swift.org release URLs.
- Fixes an issue where using shims would suppress error messages when the configured version was not installed.
- Allows the completion to work when using swiftenv installed from Homebrew.
- Adds support for command and argument completions.
- Performance improvement when running on OS X. In previous versions, during initialisation swiftenv with rehash the environment, unfortunately once we added support for Xcode's Swift there was a huge negative performance impact due to Xcode tools taking large amount of time due to the underlying commands being tremendously slow.
- Improved error reporting when trying to install a non-existent Swift version.
- When a shim command isn't found in version, search PATH too. This fixes a problem when using swiftenv on OS X with Xcode installed while your Swift version is configured to a snapshot from swift.org.
swiftenv install
can now install Swift on OS X.
- Fixes an issue when installing via Homebrew and the
$SWIFTENV_ROOT
directory didn't exist.
- Adds support for versions of Swift included in Xcode.
- Added
swiftenv --help
.
Initial release.