Skip to content

Parity: Could not find target named 'exec2' failure when building sample package (SwiftBuild) #9138

@bkhouri

Description

@bkhouri

Running the swift run swift-build --package-path Fixtures/Miscellaneous/MultipleExecutables --target exec2 fails with an unexpected error message.

❯ swift run swift-build --package-path Fixtures/Miscellaneous/MultipleExecutables --target exec2 --build-system swiftbuild
Building for debugging...
[1/1] Write swift-version--68B999B8113CC7E.txt
Build of product 'swift-build' complete! (0.35s)
error: Could not find target named 'exec2'
error: The operation couldn’t be completed. (TSCUtility.Diagnostics error 0.)

Observed on branch main (commit ID ec2a626d905c74d71745912ac83ae55ddb179844).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions