Skip to content

Swift 5.1.2 "the package dependency graph could not be resolved" #2

@JoakimCh

Description

@JoakimCh

I wanted to try the "GL window" example in the latest Swift version and for some reason all the other libraries loads ok, but not ANY of the CGLFW versions. Which is totally confusing to someone new to Swift like me. I don't even think the error message is correct, Github has that tag, but Swift is blind to this. Hopefully a quick fix...?
My package file

// swift-tools-version:5.1

import PackageDescription

let package = Package(
  name: "glWindow",
  products: [
    .executable(name: "glWindow", targets: ["glWindow"]),
  ],
  dependencies: [
    .package(url: "https://github.com/SwiftGL/OpenGL.git", from: "3.0.0"),
    .package(url: "https://github.com/SwiftGL/Math.git", from: "2.0.0"),
    .package(url: "https://github.com/SwiftGL/Image.git", from: "2.0.0"),
    .package(url: "https://github.com/SwiftGL/CGLFW3Linux.git", from: "1.0.1"),
  ],
  targets: [
    .target(name: "glWindow", dependencies: ["SGLMath", "SGLImage", "SGLOpenGL", "CGLFW3Linux"], path: "."),
  ]
)

Results in:

joakim: swift build
Updating https://github.com/SwiftGL/Image.git
Updating https://github.com/SwiftGL/OpenGL.git
Updating https://github.com/SwiftGL/Math.git
Updating https://github.com/SwiftGL/CGLFW3Linux.git
error: the package dependency graph could not be resolved; unable to find any available tag for the following requirements:
    https://github.com/SwiftGL/CGLFW3Linux.git @ 1.0.1..<2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions