-
Notifications
You must be signed in to change notification settings - Fork 108
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
do not force unwrap stdout #398
Conversation
Revert a change from #d2bd7f1aae1fc9455b208567ba5d85e42463c82c that caused the plugin to crash
@@ -32,7 +32,7 @@ struct Utils { | |||
|
|||
let fd = dup(1) | |||
let stdout = fdopen(fd, "rw") | |||
defer { fclose(stdout!) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should change ci to use the released swift image here. I think the build issue happens with swift:6.0.0 and swift:6.0.1 but not 6.0-nightly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As much as I understand how it works in Swift-NIO, we can not give the container name as a parameter
https://github.com/apple/swift-nio/blob/main/.github/workflows/swift_6_language_mode.yml
That would be a change request for the Swift-NIO project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with !
is not in the CI, it crashes the plugin when using it. We can not force unwrap, there are cases where stdout is nil
Revert a change from #d2bd7f1aae1fc9455b208567ba5d85e42463c82c that caused the plugin to crash