add-target
breaks a package that it's a single target package and doesn't have a subdirectory under Sources
#8410
Labels
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
swift package add-target
breaks a package that it's a single target package and doesn't have a subdirectory underSources
.Expected behavior
The package can be built and its directory hierarchy becomes like this:
Actual behavior
Steps to reproduce
mkdir SamplePackage cd SamplePackage swift package init --type executable swift package add-target SecondTarget swift build
Swift Package Manager version/commit hash
6.0.3
Swift & OS version (output of
swift --version ; uname -a
)The text was updated successfully, but these errors were encountered: