Skip to content
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

[SR-12304] Misleading error message #4580

Closed
dabrahams opened this issue Mar 2, 2020 · 2 comments
Closed

[SR-12304] Misleading error message #4580

dabrahams opened this issue Mar 2, 2020 · 2 comments
Assignees
Labels

Comments

@dabrahams
Copy link
Contributor

Previous ID SR-12304
Radar rdar://problem/59976662
Original Reporter @dabrahams
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee @hartbit
Priority Medium

md5: a7c060e2839fb15747f3054d1d9a0cb8

Issue Description:

If I follow the [pattern](https://swift.org/package-manager/#resolving-transitive-dependencies) used by the Dealer example, but I fail to call a source file `main.swift`, I get

"'Example' /Users/dave/src/Example: error: executable product 'Example' should have exactly one executable target"

The `Package.swift` file is just fine; it's just the fact that I called my file `Example.swift` instead of `main.swift`.

@hborla
Copy link
Member

hborla commented Mar 3, 2020

@swift-ci create

@hartbit
Copy link
Collaborator

hartbit commented Mar 6, 2020

I've tried to improve the error message: #2644

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants