Skip to content

Add diags for non-existing binary used by prebuild plugin #5834

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

Merged
merged 5 commits into from
Oct 25, 2022
Merged

Conversation

elsh
Copy link
Contributor

@elsh elsh commented Oct 21, 2022

Add diags for non-existing binary used by prebuild plugin.
Add a test to verify a package with a plugin target no longer requires a non-plugin target.
Resolves rdar://90442392, rdar://86787091

@elsh
Copy link
Contributor Author

elsh commented Oct 21, 2022

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented Oct 24, 2022

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented Oct 24, 2022

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented Oct 24, 2022

@swift-ci smoke test

var outputData = Data()
var diagnostics = [Basics.Diagnostic]()
var buildCommands = [BuildToolPluginInvocationResult.BuildCommand]()
var prebuildCommands = [BuildToolPluginInvocationResult.PrebuildCommand]()

init(delegateQueue: DispatchQueue, toolPaths: [AbsolutePath]) {
init(delegateQueue: DispatchQueue, toolPaths: [AbsolutePath], fileSystem: FileSystem) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: make fileSystem the first argument (we usually so). otherwise looks great!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a reason why it's made to be the first argument in general?

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

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

one small nit, otherwise looks great!

@elsh
Copy link
Contributor Author

elsh commented Oct 25, 2022

@swift-ci smoke test

@elsh elsh enabled auto-merge (squash) October 25, 2022 17:57
@elsh elsh changed the title Add diags for un-prebuilt exec target used by prebuild plugin Add diags for non-existing binary used by prebuild plugin Oct 25, 2022
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.

3 participants