swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.12k stars 101 forks source link

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

Closed camdenfullmer closed 1 year ago

camdenfullmer commented 1 year ago

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:

Result:

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

swift-server-bot commented 1 year ago

Can one of the admins verify this patch?

tomerd commented 1 year ago

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

tomerd commented 1 year ago

@swift-server-bot test this please