Skip to content

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

Description

@oschrenk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions