openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
749 stars 359 forks source link

[8.2.0-dev] Target Cairo version doesn't exist #1798

Closed EliteMasterEric closed 3 weeks ago

EliteMasterEric commented 3 weeks ago

Trying to clone and build this branch but this commit (https://github.com/openfl/lime/commit/7824a39e815984549560fcb3a4ef0ad7cd453a4f) refers to a commit on freedesktop/cairo, which is a repo that doesn't exist.

player-03 commented 3 weeks ago

Yeah, we had to update .gitmodules to point to freedesktop.org (2b3fe0ac0de16d25ed4b80a57b69eb17f43930bb). You should already have this commit, but you may still need to run git submodule sync && git submodule update.

joshtynjala commented 3 weeks ago

And if you need to switch back from 8.2.0-Dev to develop, you will need to run git submodule sync && git submodule update again to go back to the original module URLs that develop is still using for our 8.1 updates. After we merge 8.2.0-Dev into develop, this commands won't be needed anymore.

EliteMasterEric commented 3 weeks ago

The issue I was having was that I was unable to checkout the branch due to the missing submodule. I ended up being able to use --no-recurse-submodules and that allowed me to check out the corrected .gitmodules file, and then after that I could perform the git submodule sync.

player-03 commented 3 weeks ago

Weird. My best guess is that when you previously checked out that branch, github.com/freedesktop/cairo still existed, and it remembered that URL. Maybe another solution would have been to delete your local copy of 8.2.0-Dev, then run git checkout upstream 8.2.0-Dev.

Anyway, glad you got it working.

EliteMasterEric commented 3 weeks ago

Logging it here in case people try to find it, I encountered an error if I ever attempted to fetch the cairo submodule repository in its entirety:

error: object e5b831b107ad18e78ec9ea5e6da68eb30bf71126: missingSpaceBeforeDate: invalid author/committer line - missing space before date
fatal: fsck error in packed object
fatal: fetch-pack: invalid index-pack output

It seems some old commit in that repo is corrupted and needs to be fixed by them. In the meantime, I was able to do this to pull just the commit I needed:

git fetch --depth 1 origin tag 1.17.6