You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In getting-started/_build-system.md "Building an Executable," a main.swift file is referenced. My swift package command does not create a main.swift file. It is still creating a hello.swift file and it is still an executable program. Is the documentation out of date or is this a new feature?
I am using Swift 5.7.2. Was this changed in later versions?
To Reproduce
Steps to reproduce the behavior:
Run the following commands in a terminal window:
mkdir hello
cd hello
swift package init --type executable
Now, inspect your hello/Sources/hello directory.
Expected behavior
According to the documentation, Using the Package Manager, there should be a main.swift file in the Sources/hello directory.
Actual behavior
There is only hello.swift in the Sources/hello directory.
Screenshots
Environment details
Desktop (please complete the following information):