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

Swift 5 Support #7

Closed
afardel opened this issue Apr 10, 2019 · 2 comments
Closed

Swift 5 Support #7

afardel opened this issue Apr 10, 2019 · 2 comments

Comments

@afardel
Copy link

afardel commented Apr 10, 2019

Could there be a support for Swift 5?

Currently, if you have another SPM with depends on Progress, on swift build command, you'll get:

$>swift build
[MyPersonalProjectPath]/.build/checkouts/Progress.swift: error: package at '[MyPersonalProjectPath]/.build/checkouts/Progress.swift' is using Swift tools version 3.1.0 which is no longer supported; use 4.0.0 or newer instead

We can do swift package tools-version --set-current on the Progress folder, which will change in Package.swift:

// swift-tools-version:4.0

to:

// swift-tools-version:5.0

This can later be tested if you've cloned the Progress repository, then updated the swift-tools-version, and use:

.package(path: "../[MyLocalPathToProgressWithSwiftToolVersionUpdate]/")

instead of:

.package(url: "https://github.com/jkandzi/Progress.swift.git", from: "0.3.0")

While waiting for a 0.4.0 version.

@jkandzi
Copy link
Owner

jkandzi commented Apr 11, 2019

The error message says use 4.0.0 or newer instead #6 added // swift-tools-version:4.0 to Package.swift. I just added a tag for version 0.4.0.

Does this fix your issue?

@afardel
Copy link
Author

afardel commented Apr 11, 2019

My bad, I didn't saw that the #6 was fixing it but no tag have been generated.

Works perfectly now with 0.4.0 tag ;)

@jkandzi jkandzi closed this as completed Apr 11, 2019
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

No branches or pull requests

2 participants