You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split-off versions of SwiftLint that no longer compile on Linux
One of SwiftLint's dependencies is SWXMLHash. In versions of
that package prior to its 5.0.0 release, the XMLParser type
was imported from Foundation. But, that type has since moved
on Linux platforms to the FoundationXML module. This leads to
build failures such as:
swift-source-compat-suite/project_cache/SwiftLint/.build/
checkouts/SWXMLHash/Source/SWXMLHash.swift:296:38: error:
'XMLParser' is unavailable: This type has moved to the
FoundationXML module. Import that module to use it.
func parser(_ parser: Foundation.XMLParser,
^~~~~~~~~
SwiftLint updated its dependency on SWXMLHash to be >= 5.0.0
in f5174b316878793e4c24b63741459c1b852f480b, which happened
on Oct 8th, 2019, a little after Swift 5.1 compatability
was implemented.
Thus, this patch marks all versions of SwiftLint that are tagged
for 5.1 compatability as only compatible with Darwin, under the
new name "SwiftLint-Legacy", so that we still test those versions
of SwiftLint.
Next, I have created a new SwiftLint path that includes both
Darwin and Linux, and forwarded their compatability tests to test
SwiftLint's Swift 5.2 and Swift 5.3 releases.
Resolves rdar://83374141
0 commit comments