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-format compiled as a package along swiftlint fails to build because of swift-argument-parser incompatibility #377

Open
Zingam opened this issue Jun 18, 2022 · 1 comment

Comments

@Zingam
Copy link

Zingam commented Jun 18, 2022

I'm not sure if this is a swift-format or swiftlint issue or both.

Computing version for https://github.com/apple/swift-format.git
error: Dependencies could not be resolved because root depends on 'swift-format' 0.50600.1..<1.0.0 and root depends on 'swiftlint' 0.47.1..<1.0.0.
'swiftlint' is incompatible with 'swift-format' because 'swift-format' 0.50600.1 depends on 'swift-argument-parser' 1.1.1..<1.2.0 and no versions of 'swift-format' match the requirement 0.50600.2..<1.0.0.
'swiftlint' >= 0.47.1 practically depends on 'swift-argument-parser' 1.0.3..<1.1.0 because no versions of 'swiftlint' match the requirement 0.47.2..<1.0.0 and 'swiftlint' 0.47.1 depends on 'swift-argument-parser' 1.0.3..<1.1.0.
error: ExitCode(rawValue: 1)
[0/1] Planning buildThe terminal process "/usr/bin/bash '-c', 'swift build --build-tests'" terminated with exit code: 1.

// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
  name: "New Folder",
  dependencies: [
    // Dependencies declare other packages that this package depends on.
    // .package(url: /* package url */, from: "1.0.0"),
    // .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.1.2"),
    //.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.3"),
    .package(url: "https://github.com/apple/swift-format.git", from: "0.50600.1"),
    .package(url: "https://github.com/realm/SwiftLint.git", from: "0.47.1"),
  ],
  targets: [
    // Targets are the basic building blocks of a package. A target can define a module or a test suite.
    // Targets can depend on other targets in this package, and on products in packages this package depends on.
    .executableTarget(
      name: "New Folder",
      dependencies: []),
    .testTarget(
      name: "New FolderTests",
      dependencies: ["New Folder"]),

  ]
)
@ahoppen
Copy link
Member

ahoppen commented Apr 23, 2024

Tracked in Apple’s issue tracker as rdar://126948304

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