Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unknown Case Warning #3

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Fix Unknown Case Warning #3

merged 2 commits into from
Feb 5, 2024

Conversation

mgacy
Copy link
Collaborator

@mgacy mgacy commented Feb 5, 2024

Building with Swift 5.9 produces the following warning:

Switch covers known cases, but 'ModuleKind' may have additional unknown values

This fixes that by handling unknown SourceModuleTarget.kind cases.

I also updated the run(tool:with:) method to handle invocation failures with guard.

@mgacy mgacy requested a review from jagreenwood February 5, 2024 02:19
@mgacy mgacy merged commit 23349c4 into main Feb 5, 2024
@mgacy mgacy deleted the bugfix/unknown-defalt-warning branch February 5, 2024 19:46
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.

None yet

2 participants