3 ms·
Forking might be the wrong word, what happened here looks more like (somewhat obfuscated) plagiarism. I analyzed the 2 repositories for copy/pasted lines using
by croemer 2y ago
Forking might be the wrong word, what happened here looks more like (somewhat obfuscated) plagiarism.
I analyzed the 2 repositories for copy/pasted lines using PMD's CPD (copy/paste detector) - using the first commit of peerd and one from spegel that was from around the same time.
There are some clear duplications, e.g. 178 lines here:
https://github.com/Azure/peerd/blob/64b8928943ddd73691d0b5d80609a2e134a96c77/internal/containerd/mirror_test.go#L24-L205 https://github.com/Azure/peerd/blob/64b8928943ddd73691d0b5d8... correspond to this: https://github.com/spegel-org/spegel/blob/ed21d4da925b9a179c8f4094e22402a5bb2a930c/pkg/oci/containerd_test.go#L116-L293 https://github.com/spegel-org/spegel/blob/ed21d4da925b9a179c...
Also 44 lines here: https://github.com/spegel-org/spegel/blob/ed21d4da925b9a179c8f4094e22402a5bb2a930c/pkg/registry/registry_test.go#L75-L118 https://github.com/spegel-org/spegel/blob/ed21d4da925b9a179c... and https://github.com/Azure/peerd/blob/64b8928943ddd73691d0b5d80609a2e134a96c77/internal/oci/mirror_test.go#L75-L120 https://github.com/Azure/peerd/blob/64b8928943ddd73691d0b5d8... but the full files are almost identical, only a few edits that break the complete equality.
Also https://github.com/spegel-org/spegel/blob/ed21d4da925b9a179c8f4094e22402a5bb2a930c/pkg/oci/containerd.go#L493-L546 https://github.com/spegel-org/spegel/blob/ed21d4da925b9a179c... matches https://github.com/Azure/peerd/blob/64b8928943ddd73691d0b5d80609a2e134a96c77/internal/containerd/mirror.go#L72-L131 https://github.com/Azure/peerd/blob/64b8928943ddd73691d0b5d8...
I haven't looked deep enough to see how much of the differences are obfuscation and how much are meaningful changes. File names are all changed, many structs and variable names as well.
See this gist for full list of duplications: https://gist.github.com/corneliusroemer/c58cf0faf957d9001b58d4ed14cb0a21 https://gist.github.com/corneliusroemer/c58cf0faf957d9001b58...