Skip to content

Instantly share code, notes, and snippets.

View rtabassum's full-sized avatar

Rehana Tabassum rtabassum

  • Palo Alto, CA
  • 08:01 (UTC -07:00)
View GitHub Profile
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:
[
{
"top_level_target": "//myorg/repo/xyz/dist:VMware-xyz",
"dependencies": [
{
"target_under_license": "@rules_pkg//pkg:make_rpm",
"licenses": [
"@rules_pkg//:license"
]
},