GitUp. libgit2 updated. v1.3.0#772
Conversation
|
@lolgear I can't for the life of me figure out how to get the latest version of what I merged into the I've run the following and get the following result: |
|
@lucasderraugh |
|
@lucasderraugh Please, check latest changes. |
|
Merge please. |
|
@lolgear fix conflicts please. |
|
I fixed them up. I can't ask @lolgear to fix changes all the time 😓. |
|
@lolgear When I run Any ideas why the first part doesn't work? Also, the path you're trying to open at the end of that script seems incorrect, but not relevant to the errors I'm receiving. |
|
Yes, it should use dirname $0. sh ./update_xcode.sh |
|
@lolgear Alright, so I figured out what I was doing wrong. It now runs, but I'm hitting this assertion in CGRepository:120: assert(git_libgit2_features() & GIT_FEATURE_SSH);Any ideas how that could be resolved? Looks like you're trying to override it to be 1 in the Package.swift file but that doesn't seem to be working. |
|
Hm, I guess it should be solved via Package.swift. This file "features.h" should always have _SSH macros. And update_xcode.sh should copy correct features.h file. |
|
Ya, unfortunately it's not being set correctly. My features.h file looks like this: |
|
@lucasderraugh Could you check it? |
|
@lolgear Is there a feature in Xcode 13.3 that makes the existing code work? |
|
Invalid exclude is an entry in exclude list in Third-Party/Package.swift. |
|
@lucasderraugh |
|
@lucasderraugh |
|
@lolgear Sorry I was out sick for the past week, getting caught up on normal work but I'll visit this on the weekend. |
|
@lolgear Looks good from what I can tell. However, I want to fix our test suite before I merge this in to make sure I'm not missing anything. For some reason the xctest bundle isn't working on my end so I'll have to debug that a bit more tonight. On top of that I'll need to bump to 10.13 before then because of the endless futimens warnings. |
|
@lucasderraugh |
|
I checked this PR: // update-xcode.sh and it's output is: // sh update-xcode.sh and no warning at all... |
|
And what version of cmake? Could you check that and file |
|
I have I also have |
|
I upgraded cmake to 3.23.2. And yes Yes, it is a bug in ( I don't know, ah ) cmake? ( again? ) |
|
However, Apple will raise deployment targets to 10.13 in Xcode 14, so, it seems impossible to build products for 10.12 and less. Not sure if it is necessary to fix this cmake issue. https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-14-release-notes |
|
@lolgear I have most of the changes needed for the 10.12 bump. I'll try to get the build to 10.13 and then try this out again. |
|
@lucasderraugh |
|
Working on testing it out. It will be the next PR that goes into GitUp, I promise. |
lucasderraugh
left a comment
There was a problem hiding this comment.
Requesting above changes.
|
@lucasderraugh I added supported platforms. |
lucasderraugh
left a comment
There was a problem hiding this comment.
Unfortunately, the GitUpKit (macOS) tests don't compile, and even after fixing that, they don't pass. I'll see if I can figure out what's causing the failures, but we can't merge this in until the macOS tests are passing.
|
It is a hard decision, but... I suggest to test it in pre-release. ( and fix it during modernization ) GitUpKit won't pass tests, because so many changes happened in past years and libgit2 shows a lot of errors in tests. We can use different branch ( dev? ) for pre-releases, so, only critical fixes will be in master branch. |
|
The tests are there to prevent this exact issue. We need to validate that we haven't broken existing functionality or if we are understand why. I've reviewed some already but it will take some more time on my end. |
|
An update on my testing, the failing tests have a number of valid issues. The current one that needs resolution is clone from URL which just fails (in tests and UI). Need some more time to resolve what has changed to cause this. |
|
Closing as I had other changes I needed to make before merging in and can't push to this PR. Thanks again for the help. |
|
@lucasderraugh |
This PR updates libgit2 to version v1.3.0.
Related PR in gitup libgit2 fork.
git-up/libgit2#7
You need to run
sh ./update_xcode.shscript to generate necessary filefeatures.h