-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non deterministic license identification for github.com/magiconair/properties #41
Comments
Hi @breml, and thanks for filing this issue! I was able to reproduce with the library included in I've tested with an updated version of the library and the problem has been fixed: ❯❯❯ for i in (seq 1 20); wwhrd list --no-color 2>&1 | grep github.com/magiconair/properties; end
time="2020-11-24T10:23:07+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:10+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:12+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:15+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:17+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:20+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:22+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:24+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:27+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:30+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:32+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:35+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:37+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:40+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:42+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:45+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:47+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:50+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:52+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties
time="2020-11-24T10:23:55+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/magiconair/properties I'll cut a patch version very soon. |
|
@frapposelli just tested with version |
@frapposelli I have bad news for you, now another license shows the same problem: $ for i in (seq 1 20); wwhrd list --no-color 2>&1 | grep github.com/DATA-DOG/go-sqlmock; end
time="2020-11-25T11:46:28+01:00" level=info msg="Found License" license=BSD-3-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:32+01:00" level=info msg="Found License" license=BSD-1-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:36+01:00" level=info msg="Found License" license=0BSD package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:40+01:00" level=info msg="Found License" license=BSD-1-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:44+01:00" level=info msg="Found License" license=BSD-3-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:48+01:00" level=info msg="Found License" license=BSD-4-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:51+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:55+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:46:59+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:03+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:07+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:12+01:00" level=info msg="Found License" license=BSD-4-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:16+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:20+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:24+01:00" level=info msg="Found License" license=BSD-3-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:28+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:33+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:37+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:41+01:00" level=info msg="Found License" license=BSD-2-Clause package=github.com/DATA-DOG/go-sqlmock
time="2020-11-25T11:47:46+01:00" level=info msg="Found License" license=BSD-Protection package=github.com/DATA-DOG/go-sqlmock $ wwhrd -v
version 0.3.1
commit b4cd831edb8a6779055c34a3dfa8bb151bb40e97
date 2020-11-24T09:58:52Z Do you prefer a new issue for this or do you want to re-open this one? |
I added a debug statement (
So in order to get deterministic results, at least the That being said, if comes as a surprise to me, that all the BSD license have the same confidence level and additionally, that this confidence is only 0.5. |
I use wwhrd now for +3 years and I am thankful for your work.
Lately, I started to observe some issues though:
The package github.com/magiconair/properties (v1.8.1) is a dependency of the widely used github.com/spf13/viper and github.com/spf13/cobra packages. Unfortunately the license for this package is not identified with the same value in every run. After ~20 runs, I got the following results:
Based on my manual check of the license I would classify the license as BSD-2-Clause.
I see two problems:
This issue might be related to #40. Also I guess, it is not really an issue with wwhrd it self but more with the package used for the license detection (gopkg.in/src-d/go-license-detector.v3).
Update:
The text was updated successfully, but these errors were encountered: