Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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