Skip to content

Conversation

@xtremekforever
Copy link
Contributor

@xtremekforever xtremekforever commented Dec 6, 2025

This fixes #235. With this change you can now pass the code name of the version to the generator:

swift run swift-sdk-generator make-linux-sdk --distribution-name ubuntu --distribution-version noble
swift run swift-sdk-generator make-linux-sdk --distribution-name Debian --distribution-version trixie

Also, as a part of attempting to improve test coverage of the generator, I've added LinuxDistributionTests built on Swift Testing to complete coverage of LinuxDistribution. It is only compiled/run on Swift 6.0 and later, so it should always be invoked on the current CIs. Once swift-tools-version is set to 6.0 the #if canImport(Testing) wrapper can be removed!

 - In other words, being able to pass "--distribution-version noble" instead of only "--distribution-version 24.0.4".
 - Only compiled if Testing module is available.
 - 100% code coverage of LinuxDistribution.
@MaxDesiatov MaxDesiatov changed the title #235: Support passing distribution version names for Ubuntu/Debian, add unit tests Support passing distribution version names for Ubuntu/Debian, add unit tests Dec 6, 2025
Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MaxDesiatov MaxDesiatov requested a review from euanh December 6, 2025 20:38
@MaxDesiatov
Copy link
Contributor

@swift-ci test

@xtremekforever
Copy link
Contributor Author

Oops, got a typo in there! Also forgot the header on the new file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow passing distribution version name instead of version number (i.e., noble instead of 24.04)

2 participants