-
Notifications
You must be signed in to change notification settings - Fork 1.4k
suppress warnings from remote dependencies #5605
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
Conversation
motivation: warnings from remote dependencies are not actionable and make the use of -warnings-as-errors difficult changes: * wire up the ResolvedPackage to SwiftTargetBuildDescription * pass -suppress-warnings for remote dependencies * add unit test rdar://94473684
@swift-ci smoke test |
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.
Very nice! Thank you :-)
if self.package.isRemote { | ||
args += ["-suppress-warnings"] | ||
} | ||
|
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.
Awesome 👏
case .registry, .remoteSourceControl, .localSourceControl: | ||
return true | ||
case .root, .fileSystem: | ||
return false |
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.
Just to confirm, this would make path
dependencies be considered local and not remote, right? If so, I completely agree, that's seems like the right semantics.
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.
exactly
This is great! |
motivation: warnings from remote dependencies are not actionable and make the use of -warnings-as-errors difficult changes: * wire up the ResolvedPackage to SwiftTargetBuildDescription * pass -suppress-warnings for remote dependencies * add unit test rdar://94473684
motivation: warnings from remote dependencies are not actionable and make the use of -warnings-as-errors difficult changes: * wire up the ResolvedPackage to SwiftTargetBuildDescription * pass -suppress-warnings for remote dependencies * add unit test rdar://94473684
This is fantastic to have, but it looks like remarks still made it through:
This won't limit usage of |
@elsh @abertelrud @neonichu @artemcm thoughts? |
@tomerd @elsh @abertelrud @neonichu @artemcm any other updates or thoughts on silencing remarks? |
That sounds like a very reasonable request to me. |
I'm a bit surprised we have remarks that are emitted without being explicitly requested with some |
@artemcm what is the way to silence them? |
We do not currently have a way to do that, we need to build one that's similar to |
motivation: warnings from remote dependencies are not actionable and make the use of -warnings-as-errors difficult
changes: