We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running bazel build //examples/sboms:write_sbom_sbom, the resulting JSON should look as follows:
bazel build //examples/sboms:write_sbom_sbom
[ { "top_level_target": "//tools:write_sbom", "dependencies": [ { "target_under_license": "//tools:write_sbom", "licenses": [ "//:license" ] } ], "licenses": [ { "label": "//:license", "bazel_package": "//", "license_kinds": [ { "target": "@//licenses/spdx:Apache-2.0", "name": "Apache-2.0", "conditions": [] } ], "copyright_notice": "", "package_name": "rules_license", "package_url": "", "package_version": "0.0.7", "license_text": "LICENSE", "used_by": [ "//tools:write_sbom" ] } ], "packages": [ { "target": "//:package_info", "bazel_package": "//", "package_name": "rules_license", "package_url": "", "package_version": "0.0.7" } ] } ]
When running bazel build //examples/sboms:write_sbom_sbom, the resulting JSON actually looks as follows:
[ { "top_level_target": "//tools:write_sbom", "dependencies": [ { "target_under_license": "//tools:write_sbom", "licenses": [ "//:license" ] } ], "licenses": [ { "label": "//:license", "bazel_package": "//", "license_kinds": [ { "target": "@//licenses/spdx:Apache-2.0", "name": "Apache-2.0", "conditions": [] } ], "copyright_notice": "", "package_name": "", "package_url": "", "package_version": "", "license_text": "LICENSE", "used_by": [ "//tools:write_sbom" ] } ], "packages": [ { "target": "//:package_info", "bazel_package": "//", "package_name": "rules_license", "package_url": "", "package_version": "0.0.7" }, { "target": "//:package_info", "bazel_package": "//", "package_name": "rules_license", "package_url": "", "package_version": "0.0.7" } ] } ]
Specifically, the same package is included twice and the license doesn't contain package_name and package_version fields.
package_name
package_version
bazel-bin/examples/sboms/_write_sbom_sbom_licenses_info.json
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
When running
bazel build //examples/sboms:write_sbom_sbom
, the resulting JSON should look as follows:Actual Behavior
When running
bazel build //examples/sboms:write_sbom_sbom
, the resulting JSON actually looks as follows:Specifically, the same package is included twice and the license doesn't contain
package_name
andpackage_version
fields.Steps to Reproduce the Problem
bazel build //examples/sboms:write_sbom_sbom
bazel-bin/examples/sboms/_write_sbom_sbom_licenses_info.json
Specifications
The text was updated successfully, but these errors were encountered: