Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
swiftenv install 3.0 fails with "version `3.0' is not installed" on TravisCi's xcode7.2 image #68
I've set up a Travis CI build to install swift 3.0 on their
$ swiftenv install --verbose 3.0 Checking for a URL for the 3.0 on osx. Installing 3.0 from https://swift.org/builds/swift-3.0-release/xcode/swift-3.0-RELEASE/swift-3.0-RELEASE-osx.pkg on osx. Downloading https://swift.org/builds/swift-3.0-release/xcode/swift-3.0-RELEASE/swift-3.0-RELEASE-osx.pkg % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 254M 100 254M 0 0 11.1M 0 0:00:22 0:00:22 --:--:-- 12.5M installer: Package name is Swift Open Source Xcode Toolchain installer: Installing at base path / installer: The install was successful. 3.0 has been installed. swiftenv: version `3.0' is not installed
I think this is because https://github.com/kylef/swiftenv/blob/master/share/swiftenv-install/3.0#L11 will use
I can't replicated it locally, as I've installed Xcode 8 &
which is recognised by https://github.com/kylef/swiftenv/blob/master/libexec/swiftenv-prefix#L47
@dgholz I've made some changes to check for
I would note that Xcode 8 is a dependency of Swift 3.0. I don't think you will be able to run Swift 3.0 on macOS without Xcode 8. You can see this mentioned on Swift.org https://swift.org/download/#releases
@sauliusgrigaitis your issue doesn't seem to be the same one as this thread. Can you please file another issue including the version of swiftenv you are using and we can debug this problem you are facing.
@kylef thanks, I now see
I switched the
My expectation is that it should return zero, since
@dgholz Since you've explicitly tried to install swift it would provide an error if it's already installed. I've added an argument (
$ swiftenv install --skip-existing 3.0 $ swiftenv install -s 3.0
If you're using the Travis CI integration, the latest version of it will use
Does that work for you?
@wongzigii Please see the Travis CI integration guide: https://swiftenv.fuller.li/en/latest/integrations/travis-ci.html. The way you have configured swiftenv is with a different/unsupported way by piping it into bash. You will also need to switch to the Travis CI trusty image as mentioned in the guide.