-
Notifications
You must be signed in to change notification settings - Fork 113
Add note about naming the file main.swift to README #283
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
Conversation
Can one of the admins verify this patch? |
11 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
cc @abertelrud @neonichu - is there anything tracking a better error message from SwiftPM in such cases? |
@swift-server-bot test this please |
This change adds a note about naming the file
main.swift
and using the@main
attribute.Motivation:
When transitioning to the 1.x API users may have had their files named
main.swift
and will encounter the error'main' attribute cannot be used in a module that contains top-level code
. This change adds a note to help remedy this issue and make it easy to locate when searching the repository.Modifications:
readme.md
Result: