-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands,
swift build
,swift test
,swift package
etc.
Description
Raised here apple/swift-protobuf#1854 (comment)
Summary
Running xcrun swift package describe --type json
on the latest swift-protobuf
main
branch fails because the executable product protoc
is authored as an executable target without a main.swift
entry point.
Steps to Reproduce
git clone https://github.com/apple/swift-protobuf.git
cd swift-protobuf
- Ensure you are on the current
main
branch - Run
xcrun swift package describe --type json
Expected Result
The command succeeds and emits the package description.
Actual Result
error: 'swift-protobuf': executable product 'protoc' expects target 'protoc' to be executable; an executable target requires a 'main.swift' file
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a
)
No response