Fix incorrect "thin pack" reference handling #110
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The v5.4.2 version of the
github.com/go-git/go-git
module dependency used by this project to work with the Git repositories of the libraries was not able to correctly handle specific types of references in Git "thin packs" (go-git/go-git#190), which caused a spurious failure of thesync
process for the affected libraries (#109):(currently visible at http://downloads.arduino.cc/libraries/logs/github.com/RAKWireless/RAK14012-LED-Matrix/)
(currently visible at http://downloads.arduino.cc/libraries/logs/github.com/RAKWireless/RAK12021-TCS37725/)
The issue has already been fixed (go-git/go-git#392). Unfortunately, there has not been a release of
github.com/go-git/go-git
since that time, and the release cycle appears to be fairly long. For this reason, it is necessary to temporarily use a non-release version of the module in order to get access to the fix immediately. This project will resume using release versions as soon as the next one is made.I added an integration test which is intended to check whether the project is able to correctly handle these libraries. I have simply used the two libraries from the report as test data. I am not confident they will continue to serve as effective test data indefinitely, but also don't know how to do the generation of test data that would serve as a reliable replacement for them, and noticed that those working on the
github.com/go-git/go-git
bug also did not find an easy way to do it.Fixes #109