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

Version 5.x.x seems to be incompatible with the Apple App Store Server Swift Library #163

Closed
Eirias opened this issue Dec 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Eirias
Copy link

Eirias commented Dec 22, 2024

Describe the issue

The latest version of this repository (vapor/jwt version 5.1.1) appears to be incompatible with the Apple App Store Server Swift Library (app-store-server-library-swift version 2.3.0). This incompatibility is due to conflicting dependencies on different major versions of jwt-kit. The App Store Server Library relies on jwt-kit version 4.x, while vapor/jwt requires jwt-kit version 5.x, leading to a dependency resolution conflict in Swift Package Manager.

Vapor version

5.x.x

Operating system and version

15.1.1 (24B91)

Swift version

Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)

Steps to reproduce

  1. Create a new Vapor project.
  2. Add the dependency app-store-server-library-swift with version 2.3.0.
  3. Add the dependency vapor/jwt with version 5.1.1.

Outcome

The dependency resolution behaves inconsistently depending on the order in which dependencies are added to Package.swift.

In this case:
• Adding the app-store-server-library-swift dependency first resolves correctly but causes the vapor/jwt dependency to fail resolution.
• Conversely, adding vapor/jwt first results in app-store-server-library-swift failing to resolve.

Additional notes

The issue may tbe caused by both libraries depending on different major versions of jwt-kit:
• app-store-server-library-swift requires jwt-kit version 4.x.
• vapor/jwt requires jwt-kit version 5.x.

The Version 4.2.2 works as expected.

@Eirias Eirias added the bug Something isn't working label Dec 22, 2024
@ptoffy
Copy link
Member

ptoffy commented Dec 22, 2024

We have apple/app-store-server-library-swift#14 open so this is out of our hands unfortunately

@gwynne
Copy link
Member

gwynne commented Dec 22, 2024

In the meantime, this can be temporarily solved by adding the jwt dependency with major version 4.2.2, which will depend on jwt-kit 4.x.

@gwynne gwynne closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants