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

Gather Swift version from the .swift-version file #633

Open
wojexe opened this issue Dec 15, 2023 · 1 comment
Open

Gather Swift version from the .swift-version file #633

wojexe opened this issue Dec 15, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@wojexe
Copy link

wojexe commented Dec 15, 2023

Is your feature request related to a problem? Please describe.
I have looked searched for automatic deduction of the required Swift version in the codebase but there is no such feature. For example: setup-node GH Action has this feature built in - you can specify the node-version-file in the config.

Describe the solution you'd like
I would like to see automatic deduction of the Swift version if there is a .swift-version file in the root directory IF POSSIBLE. Otherwise it would be also good to have an option to specify the Swift version from a file, just like in the setup-node package.

I might look into this when I have some spare time :)

@wojexe wojexe added the enhancement New feature or request label Dec 15, 2023
@fwal
Copy link
Collaborator

fwal commented Dec 17, 2023

Hi! Good suggestion!

This is actually something I made a note of years ago (in #50) but didn't seem to be much need for it at the time 😅.

I also thought of supporting reading from the package manifest at the time.

Should be pretty easy to achieve though if you'd like to give it a go! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants