Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapt
writeToolsVersion(at:version:fs:)
to using the new `ToolsVers…
…ionLoader.split(_:)` This allows the old `ToolsVersionLoader.split(_:)` and `regex` to be fully removed instead of just deprecated. In implementing this change, the logic of the new `ToolsVersionLoader.split(_:)` is updated for the following 2 purposes: 1. Primarily to partially match the old `split(_:)`'s behaviour in deciding if the label of the Swift tools version specification is malformed. 2. Secondarily to provide a special path of diagnosis for when the label is prefixed with "swift-tools-version:" (case-insensitive). The comments left in the source provides much better details.
- Loading branch information