nicolaasburgers / definition-library-releases

Repository to store binaries, documentation, issue tracking and discussions related to the DefinitionLibrary plug-in for Grasshopper.
14 stars 0 forks source link

Cluster or file is shown as modified when opened in a different Rhino version #28

Open nicolaasburgers opened 5 months ago

nicolaasburgers commented 5 months ago

Currently the code serialises Grasshopper definitions into binary and creates a SHA1 value. This is by design the same method as git uses, enabling a comparison to occur without downloading the definition from GitHub by just obtaining its SHA1 value and comparing it with the locally calculated one.

However, due to the serialisation result apparently differing by Rhino version (and even when debugging with the same Rhino version), the files would appear to be different when there are no changes other than the Rhino versions used to create vs open the cluster.

This could be solved in a few possible ways: