-
Notifications
You must be signed in to change notification settings - Fork 95
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
Some packages scanned but license was not discovered although the license file exists #662
Comments
iperf.zip is an archive, not a Package in the ScanCode.io context. SCIO will only report package data where you have package metadata as for npms, RubyGems, etc. You should be able to get the file-level data for iperf from the Scan Resources. |
@mjherzog
|
@tdruez
So what's you suggestion ? what's the fastest way to get my goal I mentioned above ? |
You can get the whole scan data results for each individual file resource and package from the The fields you are looking for are |
@tdruez |
@tdruez |
Hey @RabeeaEgbareia
This is scancode-toolkit v31.x output format btw, we are releasing v32.x shortly and we have a seperate output format where both in files and packages we have a single (detected/declared) license expression. (and a secondary license expression for packages) We will also update scancode.io to this new output format, see #569 Previously in v31 (which is what latest scancode.io is using currently) we See also https://scancode-toolkit.readthedocs.io/en/doc-update-licenses/reference/license-detection-reference.html for more details on this. |
@AyanSinhaMahapatra |
I hope this week 🤞 (this is a stable release of
Great! It has a lot of improvements.
We do announce new releases in https://matrix.to/#/#aboutcode-org_discuss:gitter.im and https://matrix.to/#/#aboutcode-org_scancode:gitter.im, and we are also considering to automate release updates for all our projects: aboutcode-org/aboutcode#122 but we are not there yet |
@RabeeaEgbareia The license_expression of a package is derived from a single input which is the package manifest field that stores a license, such as a Maven POM In constrast, each file may have many different discrete license statements in multiple positions: we report one license expression for each in these cases. Note that as @AyanSinhaMahapatra mentioned above we have updated formats coming up. @RabeeaEgbareia on another note you wrote:
I am curious about what you project is! Can you share some details about it? |
@pombredanne @pombredanne for your second question
As I wrote above:
And: Every week we should scan our projects and know if we added new packages in use and which licenses added in that week and which licenses are already in use ("old licenses") I hope I explained myself clear enough, if not, let me know if you have more questions. |
I would not wait. We will try to minimize the impact and will provide upgrade instructions when this happens. |
Ok thanks |
Hi all, What is the difference between "license_expression" and "declared_license" in "packages" ? "license_expression": "unknown", |
@RabeeaEgbareia You wrote
It is usually better to re start a new issue for a new topic ;)
|
Ok, Got it :) Thanks for the explanation. |
@RabeeaEgbareia this is fixed in scancode-toolkit and we are working on #569 which would be in scancode.io v33 here. I'm not sure I have an accurate estimate on the release, but this is being actively worked on and is top priority for us at this point. As mentioned above, we have also streamlined and renamed some of our license fieldnames as seen here in the CHANGELOG, and we would have detailed documentation on this too for upgrading.
This would be the way IMHO for now, as opposed to using |
Hi again, @AyanSinhaMahapatra
|
Hi @RabeeaEgbareia We do have a stable release of scancode-toolkit out now, currently at 32.0.4 and this is also supported in the latest scancode.io release: https://github.com/nexB/scancode.io/releases/tag/v32.3.0 (upgrade done in #752 and #772, see these and the documentation at https://scancode-toolkit.readthedocs.io/en/stable/reference/license-detection-reference.html for updating reference). |
@AyanSinhaMahapatra |
Closing as completed. |
I scanned a zip file with several packages with scan_codebase pipeline, the job finished successfully but I see some packages(for example: iperf package) was scanned but no license discovered although the licenses file (LICENSE) exists.
I'm using the api: /api/projects/[PROJECT_ID]/packages/ to get the packages license
I attached the example zip file I mentioned above (iperf.zip)
iperf.zip
The text was updated successfully, but these errors were encountered: