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

Add note about naming the file main.swift to README #283

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

camdenfullmer
Copy link
Contributor

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:

  • Added note to readme.md

Result:

  • Improved documentation.

@swift-server-bot
Copy link

Can one of the admins verify this patch?

11 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@tomerd
Copy link
Contributor

tomerd commented Jan 18, 2023

cc @abertelrud @neonichu - is there anything tracking a better error message from SwiftPM in such cases?

@tomerd
Copy link
Contributor

tomerd commented Jan 18, 2023

@swift-server-bot test this please

@tomerd tomerd enabled auto-merge (squash) January 18, 2023 00:34
@tomerd tomerd merged commit 58664bd into swift-server:main Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants