Skip to content
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

Move licenses_file to separate output group #125

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

mzeren-vmw
Copy link
Collaborator

When packaging outputs via rules_pkg we should not include the licenses_file by default. To avoid that, move it to its own output group.

With this change:
bazel cquery --output=files //examples/sboms:write_sbom 2> /dev/null && \ bazel cquery --output=files //examples/src:check_server 2> /dev/null bazel-out/darwin-fastbuild/bin/examples/sboms/write_sbom.txt bazel-out/darwin-fastbuild/bin/examples/src/server_report.txt bazel-out/darwin-fastbuild/bin/examples/src/server_licenses.txt

Before this change those commands would include:
bazel-out/darwin-fastbuild/bin/examples/sboms/_write_sbom_sbom_licenses_info.json bazel-out/darwin-fastbuild/bin/examples/src/_check_server_licenses_info.json

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Tests and examples for any new features.
  • Appropriate changes to README are included in PR

When packaging outputs via rules_pkg we should not include the
licenses_file by default. To avoid that, move it to its own output
group.

With this change:
bazel cquery --output=files //examples/sboms:write_sbom 2> /dev/null && \
bazel cquery --output=files //examples/src:check_server 2> /dev/null
bazel-out/darwin-fastbuild/bin/examples/sboms/write_sbom.txt
bazel-out/darwin-fastbuild/bin/examples/src/server_report.txt
bazel-out/darwin-fastbuild/bin/examples/src/server_licenses.txt

Before this change those commands would include:
bazel-out/darwin-fastbuild/bin/examples/sboms/_write_sbom_sbom_licenses_info.json
bazel-out/darwin-fastbuild/bin/examples/src/_check_server_licenses_info.json
@aiuto aiuto merged commit 07ee70a into main Oct 28, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants