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

Dependencies could not be resolved (swift argument parser) #64

Open
oschrenk opened this issue Aug 17, 2024 · 0 comments
Open

Dependencies could not be resolved (swift argument parser) #64

oschrenk opened this issue Aug 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oschrenk
Copy link

Patterns Environment

  • Patterns version: 0.1.2
  • macOS version: 14.6.1
  • Xcode version: No Xcode
  • Dependency manager (Swift Package Manager, Manually): spm

What did you do?

Wanted to use the project/package.

Added the package to my existing CLI (which uses Argument Parser 1.5.0)

  dependencies: [
    .package(url: "https://github.com/apple/swift-argument-↵
parser", exact: "1.5.0"),
    .package(url: "https://github.com/kareman/Patterns.git"↴
                                          …, from: "0.1.2"),
  ],
  targets: [
    .executableTarget(
      name: "plan",
      dependencies: [
        .product(name: "ArgumentParser", package: "swift-ar↴
                                           …gument-parser"),
        .product(name: "Patterns", package: "patterns"),
      ],
      path: "Sources"
    ),

But can't install because I get

error: Dependencies could not be resolved because root depends on 'swift-argument-parser' 1.5.0 and root depends on 'patterns' 0.1.2..<1.0.0.
'patterns' >= 0.1.2 practically depends on 'swift-argument-parser' 0.0.1..<1.0.0 because no versions of 'patterns' match the requirement 0.1.3..<1.0.0 and 'patterns' 0.1.2 depends on 'swift-argument-parser' 0.0.1..<1.0.0.

The project uses swift-argument-parser:0.0.1

What did you expect to happen?

Use package

What happened instead?

Dependency hell

Notes

I am quite new to swift so there might be a way to exclude the dependency.

@oschrenk oschrenk added the bug Something isn't working label Aug 17, 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

1 participant