You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scanning /boring-sys/Cargo.toml with the current release of ScanCode I get the following package data detection including an object for the vcs_url. Is this the expected behaviour? From the model definition of a package I would have expected an optional string here. Also, I don't really know how to interpret this value.
There is also a scan_error, maybe this is related to the unexpected output here?
"scan_errors": [
"get_package_and_deps: Failed to assemble PackageData: PackageData(type='cargo', namespace=None, name='boring-sys', version=None, datasource_id='cargo_toml'):\nTraceback (most recent call last):\n File \"../scancode-toolkit-v32.1.0/venv/lib/python3.11/site-packages/packagedcode/plugin_package.py\", line 413, in get_package_and_deps\n for item in items:\n File \"../scancode-toolkit-v32.1.0/venv/lib/python3.11/site-packages/packagedcode/cargo.py\", line 44, in assemble\n workspace_root_path = resource.parent(codebase).path\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'bool' object has no attribute 'path'\n"
]
How To Reproduce
This is the command I used, executed within the extracted directory of the latest release downloaded from GitHub. ./scancode -clpu --only-findings -n 20 --license-text --json result_boring_cargo.json ../boring/boring-sys/Cargo.toml
System configuration
What OS are you running on? Linux
What version of scancode-toolkit was used to generate the scan file? v32.1.0, I also checked with a previous version v 32.0.8, but there the vcs_url is just null.
The text was updated successfully, but these errors were encountered:
AyanSinhaMahapatra
changed the title
Unexpected output for field vcs_url in package detection
Unexpected output for field vcs_url in cargo workkspaces
May 17, 2024
@meretp this should be fixed with a lot of bugfixes and improvements on cargo workspaces, see #3783 (comment) for details on this.
See also attached the scan results for boring: boring-master-scan.json
Description
When scanning /boring-sys/Cargo.toml with the current release of ScanCode I get the following package data detection including an object for the vcs_url. Is this the expected behaviour? From the model definition of a package I would have expected an optional string here. Also, I don't really know how to interpret this value.
There is also a scan_error, maybe this is related to the unexpected output here?
How To Reproduce
This is the command I used, executed within the extracted directory of the latest release downloaded from GitHub.
./scancode -clpu --only-findings -n 20 --license-text --json result_boring_cargo.json ../boring/boring-sys/Cargo.toml
System configuration
The text was updated successfully, but these errors were encountered: