SwiftGL / examples

17 stars 2 forks source link

Can't install dependencies Linux #4

Open Iainmon opened 4 years ago

Iainmon commented 4 years ago

I am trying to build the examples, but I get this error when running swift build:

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

Any help would be great!

Swift Package Manager - Swift 5.1.0 (331fa5cb)
jeremythorne commented 4 years ago

as a workaround the following worked for me: git clone https://github.com/SwiftGL/CGLFW3.git somewhere locally and add // swift-tools-version:5.1 to Package.swift in CGLFW3, then git add / git commit this change then back in examples, modify common/_Package.swift to point to this local repository e.g.

-        .package(url: "https://github.com/SwiftGL/CGLFW3.git", from: "2.0.0"),
+        .package(url: "../../../CGLFW3", .branch("master")),