This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _generate_osl_impl(ctx): | |
"""Implements `_generate_osl`. | |
# Gather all licenses and write information to OSL. | |
""" | |
# Declare the output OSL file. | |
osl_file = ctx.actions.declare_file("osl.txt") | |
target = ctx.attr.src | |
if not TransitiveLicensesInfo in target: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"top_level_target": "//myorg/repo/xyz/dist:VMware-xyz", | |
"dependencies": [ | |
{ | |
"target_under_license": "@rules_pkg//pkg:make_rpm", | |
"licenses": [ | |
"@rules_pkg//:license" | |
] | |
}, |