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

Can't install dependencies Linux #4

Open
Iainmon opened this issue Dec 1, 2019 · 1 comment
Open

Can't install dependencies Linux #4

Iainmon opened this issue Dec 1, 2019 · 1 comment

Comments

@Iainmon
Copy link

Iainmon commented Dec 1, 2019

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
Copy link

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")),

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