To prevent the ever increasing number of
Package@swift-x.y.swift files a library author must maintain may I suggest we halt the ascent of swift-tools-version at 5.0 and instead encourage use of
#if compiler in the manifest files.
Lately I have been trying to support both Xcode 10.1 and Xcode 10.2 toolchains in my libraries, and the only way to do this is to duplicate the whole manifest to
Package@swift-5.0.swift and change the top tools annotation from 4.2 to 5.0.
I almost didn't, but I want to use some Swift 5 features in my tests, which means I must have a
Since we now have a compiler directive that can determine tools-version, perhaps we can make a proposal to adjust the forward direction for this part of SwiftPM to something more maintainable?
#if compiler I could then:
#if compiler(>=5) package.swiftLangageVersions.append(.v5) #endif