API for getting the full Swift version (as reported by swift --version
)
#75998
Labels
feature
A feature request or implementation
runtime
The Swift Runtime
standard library
Area: Standard library umbrella
triage needed
This issue needs more specific labels
Motivation
Swift Testing needs to be able to report the full Swift version (as reported by
swift --version
) for diagnostic purposes, e.g. when reading logs produced by a CI job or another engineer or in a different configuration. This version information is immensely useful when filing bug reports because it allows us to immediately see "oh, it was the [e.g.] August 9th nightly main-branch toolchain where the bug occurred" and so on.Proposed solution
I'd like to propose we add API to the Swift standard library that vends a "human-readable" string equivalent to the aforementioned one. Something like this would be sufficient:
Alternatives considered
Additional information
No response
The text was updated successfully, but these errors were encountered: