Skip to content

More clever failing related to target and source presence#3307

Closed
oldergod wants to merge 1 commit intomasterfrom
bquenaudon.2025-03-31.nosourcewithtarget
Closed

More clever failing related to target and source presence#3307
oldergod wants to merge 1 commit intomasterfrom
bquenaudon.2025-03-31.nosourcewithtarget

Conversation

@oldergod
Copy link
Member

No description provided.

Comment on lines +258 to +263
if (targets.isEmpty() && fullSchema.protoFiles.all { isWireRuntimeProto(it.location) }) {
// We have sources but no target to handle them.
IllegalStateException("Sources have been found but no target are set. " +
"At least one target must be provided for this project\n" +
"See our documentation for details: https://square.github.io/wire/wire_compiler/#customizing-output")
}
Copy link
Member Author

Choose a reason for hiding this comment

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

It doesn't look like this code is executed on neither of the tests

@oldergod oldergod closed this Feb 3, 2026
@oldergod oldergod deleted the bquenaudon.2025-03-31.nosourcewithtarget branch February 3, 2026 16:08
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.

1 participant