Open Priyankasaggu11929 opened 2 years ago
The problem seems identical to https://github.com/google/go-licenses/issues/73#issuecomment-1019453152.
I have an open https://github.com/google/go-licenses/pull/110 to resolve the issue.
Not sure if the PR still compiles, can you try that branch?
Why not merged yet?
Since you asked, I can try to revisit the PR.
Thanks @Bobgy for the prompt response & pointers ^.
Not sure if the PR still compiles, can you try that branch?
I'll try testing with the PR branch.
I've been working on a bash utility script -
verify-licenses.sh
that verifies licenses for the go-packages used by the upstream Kubernetes Project, against the CNCF approved list of licenses.We ran across an issue where executing the
go-licenses csv ...
command against Kubernetes project repo, produced a list of incorrectly formed Licenses URLs (inaccessible URLs) for a few go-packages, where in reality, those packages have valid accessible licenses present in the project.Below is snippet from the script logs, with name/urls of the go-packages in question. (Please find the full script logs here)
For example:
The license URL for package
github.com/Azure/go-autorest/autorest
returned is https://github.com/Azure/go-autorest/blob/autorest/v0.11.18/autorest/LICENSE which is inaccessible & gives a 404 response.The correct accessible URL is present at https://github.com/Azure/go-autorest/blob/autorest/v0.11.18/LICENSE
For more context/information, check the WIP PR: https://github.com/kubernetes/kubernetes/pull/109299
Help Wanted / Solution
We need help with implementing a fix/workaround for the 'go-licenses csv...' command so that it returns correctly formatted accessible URLs for go-packages that have valid licences present in their source code repository.