Skip to content

build: loosen swfit-argument-parser dependency #2912

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

Closed
wants to merge 2 commits into from

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Sep 7, 2020

When building SourceKit-LSP without local deps, swift-argument-parser is taken to be 0.3.1..<0.4.0. However, swift-package-manager, a dependency of SourceKit-LSP requires =0.3.0. This results in a conflicting version statement that cannot be resolved. This only impacts the build in the non-local dependency situation which is why this probably hasn't been noticed.

When building SourceKit-LSP without local deps, swift-argument-parser is taken to be 0.3.1..<0.4.0.  However, swift-package-manager, a dependency of SourceKit-LSP requires =0.3.0.  This results in a conflicting version statement that cannot be resolved.  This only impacts the build in the non-local dependency situation which is why this probably hasn't been noticed.
@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

@swift-ci please smoke test

Fix the version condition for swift-argument-parser
@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

@swift-ci please smoke test

@owenv
Copy link
Contributor

owenv commented Sep 7, 2020

swift-argument-parser was pinned to 0.3.0 in #2909 because version 0.3.1 triggers an assertion. That issue will need to be fixed before addressing this one

@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

@owenv thank you for pointing that out! That actually is very helpful. I think that the thing to do it to match SourceKit-LSP then to this I think.

@compnerd compnerd marked this pull request as draft September 7, 2020 18:10
@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

(converted to draft to prevent accidental merging)

@abertelrud
Copy link
Contributor

Amusingly enough, in that PR there was some discussion about whether we should have a comment in the package manifest to indicate why we were pinning to 0.3.0, but both Boris and I felt that maybe the commit log was enough. But I think in this case a comment right there in the manifest would probably have been helpful and saved some time, so I think we should do so in the future when we do something unusual in the manifest.

@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

BTW, I've created swiftlang/sourcekit-lsp#312 to sync SK-LSP with SPM

@compnerd compnerd closed this Sep 11, 2020
@compnerd compnerd deleted the compnerd-version-dependencies branch September 11, 2020 02:15
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

Successfully merging this pull request may close these issues.

3 participants