Skip to content

Update README.md #731

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

Merged
merged 3 commits into from
Feb 9, 2025
Merged

Update README.md #731

merged 3 commits into from
Feb 9, 2025

Conversation

bdiesel
Copy link
Contributor

@bdiesel bdiesel commented Feb 7, 2025

This commit fixes an issue when starting Vapor in swift 6. I believe earlier versions of Swift throw a warning about this.

Motivation

I was following along with documentations but Vapor was throwing an error: Initializer 'init' is unavailable from asynchronous contexts; This initialiser cannot be used in async contexts, use Application.make(::) instead

Modifications

Just a very simple update to the documentation so others getting started don't hit the same issue

Result

Vapor server will start when following docs.

Test Plan

manual tests.

This commit fixes an issue when starting Vapor in swift 6.  I believe earlier versions of Swift throw a warning about this.
Remove environment detection param
@czechboy0
Copy link
Contributor

Thanks @bdiesel, I believe there are a few more places in the repo, could you grep for any other occurrences? The docc landing page might also have this example, possibly also tutorials and examples. Thanks!

@bdiesel
Copy link
Contributor Author

bdiesel commented Feb 7, 2025

My pleasure! I've updated all the instances in the documentation. My original pr did not include the Vapor namespace so I've added that for consistency and clarity.

Copy link
Contributor

@czechboy0 czechboy0 left a comment

Choose a reason for hiding this comment

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

Thank you!

@czechboy0 czechboy0 enabled auto-merge (squash) February 8, 2025 21:39
@czechboy0 czechboy0 added the semver/none No version bump required. label Feb 9, 2025
@czechboy0 czechboy0 merged commit 1db77dd into apple:main Feb 9, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants