Skip to content

Move licenses_file to separate output group#125

Merged
aiuto merged 1 commit intomainfrom
topic/mzeren/licenses_file_group
Oct 28, 2023
Merged

Move licenses_file to separate output group#125
aiuto merged 1 commit intomainfrom
topic/mzeren/licenses_file_group

Conversation

@mzeren-vmw
Copy link
Copy Markdown
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
@mzeren-vmw mzeren-vmw requested a review from aiuto as a code owner October 28, 2023 14:10
@aiuto aiuto merged commit 07ee70a into main Oct 28, 2023
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