This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Rules

Bazel rules

1 - Ansible

Ansible rules

1.1 - al_ansible_binary

al_ansible_binary

load("@com_alwaldend_src//bzl/rules/ansible:al_ansible_binary.bzl", "al_ansible_binary")

al_ansible_binary(name, ansible, arguments, process_name, symlinks)

Run an ansible command

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
ansible Ansible executable Dictionary: String -> Label optional {"ansible": "@com_alwaldend_src//bzl/rules/ansible", "ansible_config": "@com_alwaldend_src//bzl/rules/ansible:ansible_config", "ansible_console": "@com_alwaldend_src//bzl/rules/ansible:ansible_console", "ansible_doc": "@com_alwaldend_src//bzl/rules/ansible:ansible_doc", "ansible_galaxy": "@com_alwaldend_src//bzl/rules/ansible:ansible_galaxy", "ansible_inventory": "@com_alwaldend_src//bzl/rules/ansible:ansible_inventory", "ansible_playbook": "@com_alwaldend_src//bzl/rules/ansible:ansible_playbook", "ansible_pull": "@com_alwaldend_src//bzl/rules/ansible:ansible_pull", "ansible_test": "@com_alwaldend_src//bzl/rules/ansible:ansible_test", "ansible_vault": "@com_alwaldend_src//bzl/rules/ansible:ansible_vault"}
arguments Ansible arguments List of strings optional []
process_name Process name String required
symlinks Symlinks List of labels optional []

1.2 - al_ansible_role

al_ansible_role

load("@com_alwaldend_src//bzl/rules/ansible:al_ansible_role.bzl", "al_ansible_role")

al_ansible_role(name, srcs, visibility)

Create targets for an ansible role

PARAMETERS

Name Description Default Value
name name prefix none
srcs role sources none
visibility resulting archive visibility none

1.3 - Bazel targets

NameInfo
_ansible_config_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_config_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_config.py
visibility
  • //visibility:private
_ansible_console_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_console_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_console.py
visibility
  • //visibility:private
_ansible_doc_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_doc_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_doc.py
visibility
  • //visibility:private
_ansible_galaxy_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_galaxy_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_galaxy.py
visibility
  • //visibility:private
_ansible_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible.py
visibility
  • //visibility:private
_ansible_inventory_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_inventory_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_inventory.py
visibility
  • //visibility:private
_ansible_playbook_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_playbook_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_playbook.py
visibility
  • //visibility:private
_ansible_pull_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_pull_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_pull.py
visibility
  • //visibility:private
_ansible_test_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_test_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_test.py
visibility
  • //visibility:private
_ansible_vault_gen
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:_ansible_vault_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/ansible:rules_python_entry_point_ansible_vault.py
visibility
  • //visibility:private
al_ansible_binary
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_ansible_binary.stardoc
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/ansible:al_ansible_binary.stardoc.md
visibility
  • //visibility:private
al_ansible_binary.stardoc_raw
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/ansible:al_ansible_binary.stardoc_raw.md
visibility
  • //visibility:private
al_ansible_binary.stardoc_raw.extract
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/ansible:al_ansible_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/ansible:al_ansible_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_ansible_role
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_role
ruleClassbzl_library
visibility
  • //visibility:public
al_ansible_role.stardoc
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_role.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/ansible:al_ansible_role.stardoc.md
visibility
  • //visibility:private
al_ansible_role.stardoc_raw
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_role.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/ansible:al_ansible_role.stardoc_raw.md
visibility
  • //visibility:private
al_ansible_role.stardoc_raw.extract
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:al_ansible_role.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/ansible:al_ansible_role.stardoc_raw.extract.binaryproto
  • //bzl/rules/ansible:al_ansible_role.stardoc_raw.extract.textproto
visibility
  • //visibility:private
ansible
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible
ruleClasspy_binary
visibility
  • //visibility:public
ansible_config
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_config
ruleClasspy_binary
visibility
  • //visibility:public
ansible_console
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_console
ruleClasspy_binary
visibility
  • //visibility:public
ansible_doc
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_doc
ruleClasspy_binary
visibility
  • //visibility:public
ansible_galaxy
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_galaxy
ruleClasspy_binary
visibility
  • //visibility:public
ansible_inventory
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_inventory
ruleClasspy_binary
visibility
  • //visibility:public
ansible_playbook
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_playbook
ruleClasspy_binary
visibility
  • //visibility:public
ansible_pull
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_pull
ruleClasspy_binary
visibility
  • //visibility:public
ansible_test
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_test
ruleClasspy_binary
visibility
  • //visibility:public
ansible_vault
locationbzl/rules/ansible/BUILD.bazel:49:29
name//bzl/rules/ansible:ansible_vault
ruleClasspy_binary
visibility
  • //visibility:public
changelog
locationbzl/rules/ansible/BUILD.bazel:21:17
name//bzl/rules/ansible:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/ansible/BUILD.bazel:21:17
name//bzl/rules/ansible:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/ansible:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/ansible/BUILD.bazel:21:17
name//bzl/rules/ansible:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/ansible:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/ansible/BUILD.bazel:21:17
name//bzl/rules/ansible:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/ansible/BUILD.bazel:21:17
name//bzl/rules/ansible:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/ansible:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/ansible/BUILD.bazel:26:19
name//bzl/rules/ansible:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/ansible/BUILD.bazel:58:10
name//bzl/rules/ansible:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/ansible/BUILD.bazel:58:10
name//bzl/rules/ansible:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/ansible/BUILD.bazel:58:10
name//bzl/rules/ansible:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
requirements
locationbzl/rules/ansible/BUILD.bazel:42:25
name//bzl/rules/ansible:requirements
ruleClassfilegroup
visibility
  • //visibility:private
requirements.test
locationbzl/rules/ansible/BUILD.bazel:42:25
name//bzl/rules/ansible:requirements.test
ruleClasspy_test
visibility
  • //visibility:private
requirements.update
locationbzl/rules/ansible/BUILD.bazel:42:25
name//bzl/rules/ansible:requirements.update
ruleClasspy_binary
visibility
  • //visibility:private
requirements_test
locationbzl/rules/ansible/BUILD.bazel:42:25
name//bzl/rules/ansible:requirements_test
ruleClassalias
visibility
  • //visibility:private

1.4 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Remove pkg_tar from ansible rules and ansible targets (986245)
  • Add dependency support to bzl/rules/helm, add the rancher chart (f0465f)
  • Add raspberry_pi role, add rancher1 playbook (3e9178)
  • Remove old playbooks, add host vars and group vars, add k3s install script (cd9021)
  • Move roles and playbooks to the collection (f1c071)
  • Add external ansible collections, rename some deps (99b3c7)
  • Fix ansible runfiles (6ae6b8)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move ansible and leetcode rules to bzl/rules (0d9b39)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move hugo rules to bzl/rules/hugo, move go rules to /bzl/rules/go (cb079f)
  • Split tools/deps.MODULE.bazel (050ae5)
  • Bump bazel version, split the root MODULE file, add bzl/rules/ansible (981a38)

2 - Bazel shell worker

Rules for the bazel shell worker

2.1 - al_genrule

al_genrule

load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule.bzl", "al_genrule")

al_genrule(test, executable, **kwargs)

Generate al_genrule target

PARAMETERS

Name Description Default Value
test If set, use al_genrule_test False
executable if set, use al_genrule_executable False
kwargs kwargs for the rule none

2.2 - al_genrule_rule

al_genrule_executable

load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule_rule.bzl", "al_genrule_executable")

al_genrule_executable(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)

Build executable using shell worker

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources, will not be added to runfiles List of labels optional []
data Data, will be added to runfiles List of labels optional []
outs Outputs List of labels; nonconfigurable required
cmd Script to execute String required
set_flags set flags List of strings optional ["-eux"]
shell shell to use String optional "/bin/sh"
tools Tools, will be added to runfiles List of labels optional []
worker Worker binary Label optional "@com_alwaldend_src//go/bazel-shell-worker"

al_genrule_regular

load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule_rule.bzl", "al_genrule_regular")

al_genrule_regular(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)

Build shell worker rule

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources, will not be added to runfiles List of labels optional []
data Data, will be added to runfiles List of labels optional []
outs Outputs List of labels; nonconfigurable required
cmd Script to execute String required
set_flags set flags List of strings optional ["-eux"]
shell shell to use String optional "/bin/sh"
tools Tools, will be added to runfiles List of labels optional []
worker Worker binary Label optional "@com_alwaldend_src//go/bazel-shell-worker"

al_genrule_test

load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule_rule.bzl", "al_genrule_test")

al_genrule_test(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)

Test using shell worker

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources, will not be added to runfiles List of labels optional []
data Data, will be added to runfiles List of labels optional []
outs Outputs List of labels; nonconfigurable required
cmd Script to execute String required
set_flags set flags List of strings optional ["-eux"]
shell shell to use String optional "/bin/sh"
tools Tools, will be added to runfiles List of labels optional []
worker Worker binary Label optional "@com_alwaldend_src//go/bazel-shell-worker"

2.3 - Bazel targets

NameInfo
al_genrule
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule
ruleClassbzl_library
visibility
  • //visibility:public
al_genrule.stardoc
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/bazel_shell_worker:al_genrule.stardoc.md
visibility
  • //visibility:private
al_genrule.stardoc_raw
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/bazel_shell_worker:al_genrule.stardoc_raw.md
visibility
  • //visibility:private
al_genrule.stardoc_raw.extract
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/bazel_shell_worker:al_genrule.stardoc_raw.extract.binaryproto
  • //bzl/rules/bazel_shell_worker:al_genrule.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_genrule_rule
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule_rule
ruleClassbzl_library
visibility
  • //visibility:public
al_genrule_rule.stardoc
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc.md
visibility
  • //visibility:private
al_genrule_rule.stardoc_raw
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc_raw.md
visibility
  • //visibility:private
al_genrule_rule.stardoc_raw.extract
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc_raw.extract.binaryproto
  • //bzl/rules/bazel_shell_worker:al_genrule_rule.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/bazel_shell_worker/BUILD.bazel:6:17
name//bzl/rules/bazel_shell_worker:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/bazel_shell_worker/BUILD.bazel:6:17
name//bzl/rules/bazel_shell_worker:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/bazel_shell_worker:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/bazel_shell_worker/BUILD.bazel:6:17
name//bzl/rules/bazel_shell_worker:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/bazel_shell_worker:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/bazel_shell_worker/BUILD.bazel:6:17
name//bzl/rules/bazel_shell_worker:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/bazel_shell_worker/BUILD.bazel:6:17
name//bzl/rules/bazel_shell_worker:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/bazel_shell_worker:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/bazel_shell_worker/BUILD.bazel:11:19
name//bzl/rules/bazel_shell_worker:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/bazel_shell_worker/BUILD.bazel:22:10
name//bzl/rules/bazel_shell_worker:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/bazel_shell_worker/BUILD.bazel:22:10
name//bzl/rules/bazel_shell_worker:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/bazel_shell_worker/BUILD.bazel:22:10
name//bzl/rules/bazel_shell_worker:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

2.4 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move bazel shell worker rules to bzl/rules/bazel_shell_worker (0a9c1c)

3 - Bazel targets

NameInfo
changelog
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/BUILD.bazel:17:10
name//bzl/rules:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/BUILD.bazel:17:10
name//bzl/rules:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/BUILD.bazel:17:10
name//bzl/rules:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

4 - Bzl

Bazel rules

4.1 - al_alias_map

al_alias_map

load("@com_alwaldend_src//bzl/rules/bzl:al_alias_map.bzl", "al_alias_map")

al_alias_map(aliases, visibility)

Generate aliases from an alias map

PARAMETERS

Name Description Default Value
aliases alias map, keys are names, values are alias arguments none
visibility default visibility ["//visibility:public"]

4.2 - al_bzl_library_map

al_bzl_library_map

load("@com_alwaldend_src//bzl/rules/bzl:al_bzl_library_map.bzl", "al_bzl_library_map")

al_bzl_library_map(name, visibility, libs, deps, **kwargs)

Create bzl_library targets from a map

PARAMETERS

Name Description Default Value
name combined bzl_library target name none
visibility

-

none
libs bzl_library names {}
deps other al_bzl_library_map targets []
kwargs bzl_library kwargs none

4.3 - al_bzl_target_doc

al_bzl_target_doc

load("@com_alwaldend_src//bzl/rules/bzl:al_bzl_target_doc.bzl", "al_bzl_target_doc")

al_bzl_target_doc(name, visibility, subpackages)

Document bazel targets

PARAMETERS

Name Description Default Value
name target name none
visibility

-

none
subpackages list of subpackages []

4.4 - al_genquery_write_to_source_file

al_genquery_write_to_source_file

load("@com_alwaldend_src//bzl/rules/bzl:al_genquery_write_to_source_file.bzl", "al_genquery_write_to_source_file")

al_genquery_write_to_source_file(name, expression, scope, var_name, out_file)

Write genquery result to a bzl file

Example:

    al_genquery_write_to_source_file(
        name = "al_bzl_libs",
        expression = """
            filter(
                "^//",
                attr(
                    "srcs",
                    ".{3,}",
                    kind(
                        "bzl_library",
                        deps("//bzl")
                    )
                )
            )
        """,
        out_file = "al_bzl_libs.bzl",
        scope = ["//bzl"],
        var_name = "AL_BZL_LIBS",
    )

PARAMETERS

Name Description Default Value
name name prefix none
expression genquery expression none
scope genquery scope none
var_name variable name in the generated .bzl file none
out_file output bzl file none

4.5 - Bazel targets

NameInfo
al_alias_map
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_alias_map
ruleClassbzl_library
visibility
  • //visibility:public
al_alias_map.stardoc
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_alias_map.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/bzl:al_alias_map.stardoc.md
visibility
  • //visibility:private
al_alias_map.stardoc_raw
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_alias_map.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/bzl:al_alias_map.stardoc_raw.md
visibility
  • //visibility:private
al_alias_map.stardoc_raw.extract
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_alias_map.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/bzl:al_alias_map.stardoc_raw.extract.binaryproto
  • //bzl/rules/bzl:al_alias_map.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_bzl_library_map
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_library_map
ruleClassbzl_library
visibility
  • //visibility:public
al_bzl_library_map.stardoc
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_library_map.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/bzl:al_bzl_library_map.stardoc.md
visibility
  • //visibility:private
al_bzl_library_map.stardoc_raw
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_library_map.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/bzl:al_bzl_library_map.stardoc_raw.md
visibility
  • //visibility:private
al_bzl_library_map.stardoc_raw.extract
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_library_map.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/bzl:al_bzl_library_map.stardoc_raw.extract.binaryproto
  • //bzl/rules/bzl:al_bzl_library_map.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_bzl_target_doc
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_target_doc
ruleClassbzl_library
visibility
  • //visibility:public
al_bzl_target_doc.stardoc
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_target_doc.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/bzl:al_bzl_target_doc.stardoc.md
visibility
  • //visibility:private
al_bzl_target_doc.stardoc_raw
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_target_doc.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/bzl:al_bzl_target_doc.stardoc_raw.md
visibility
  • //visibility:private
al_bzl_target_doc.stardoc_raw.extract
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_bzl_target_doc.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/bzl:al_bzl_target_doc.stardoc_raw.extract.binaryproto
  • //bzl/rules/bzl:al_bzl_target_doc.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_genquery_write_to_source_file
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_genquery_write_to_source_file
ruleClassbzl_library
visibility
  • //visibility:public
al_genquery_write_to_source_file.stardoc
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_genquery_write_to_source_file.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/bzl:al_genquery_write_to_source_file.stardoc.md
visibility
  • //visibility:private
al_genquery_write_to_source_file.stardoc_raw
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_genquery_write_to_source_file.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/bzl:al_genquery_write_to_source_file.stardoc_raw.md
visibility
  • //visibility:private
al_genquery_write_to_source_file.stardoc_raw.extract
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:al_genquery_write_to_source_file.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/bzl:al_genquery_write_to_source_file.stardoc_raw.extract.binaryproto
  • //bzl/rules/bzl:al_genquery_write_to_source_file.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/bzl/BUILD.bazel:6:17
name//bzl/rules/bzl:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/bzl/BUILD.bazel:6:17
name//bzl/rules/bzl:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/bzl:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/bzl/BUILD.bazel:6:17
name//bzl/rules/bzl:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/bzl:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/bzl/BUILD.bazel:6:17
name//bzl/rules/bzl:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/bzl/BUILD.bazel:6:17
name//bzl/rules/bzl:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/bzl:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/bzl/BUILD.bazel:11:19
name//bzl/rules/bzl:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/bzl/BUILD.bazel:36:10
name//bzl/rules/bzl:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/bzl/BUILD.bazel:36:10
name//bzl/rules/bzl:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/bzl/BUILD.bazel:36:10
name//bzl/rules/bzl:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

4.6 - Changelog

  • Remove pkg_tar from bzl, readme, drawio (6230ed)
  • Add bzl/package_groups, remove pkg_tar from a couple of rules (116823)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move ansible and leetcode rules to bzl/rules (0d9b39)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)

5 - Changelog

  • Fix hugo build in CI (70f831)
  • Use current pid as a display number in xvfb (4c0d66)
  • Run pnpm install before the build (bad716)
  • Use another algorithm for the xvfb display number (ca7129)
  • Disable cleanup in al_drawio_run_binary (2fcf9d)
  • Fix stderr in al_drawio_run_binary (c65332)
  • Add ci config, choose hugo url based on it (8932e6)
  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Partially remove pkg_tar from hugo, remove several registry modules (f59f94)
  • Remove pkg_tar from bzl, readme, drawio (6230ed)
  • Remove pkg_tar from leetcode rules (5e3ad2)
  • Remove pkg_tar from helm and helm rules (ea1905)
  • Remove pkg_tar from ansible rules and ansible targets (986245)
  • Add bzl/package_groups, remove pkg_tar from a couple of rules (116823)
  • Add dependency support to bzl/rules/helm, add the rancher chart (f0465f)
  • Add al_go_platform rules, add native_binary support to al_repo_map (8ca07d)
  • Add raspberry_pi role, add rancher1 playbook (3e9178)
  • Remove old playbooks, add host vars and group vars, add k3s install script (cd9021)
  • Move roles and playbooks to the collection (f1c071)
  • Add external ansible collections, rename some deps (99b3c7)
  • Fix ansible runfiles (6ae6b8)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move ansible and leetcode rules to bzl/rules (0d9b39)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move py rules to bzl/rules/py (dcb491)
  • Move patch rules to bzl/rules/patch (b01995)
  • Move lua rules to bzl/rules/lua, move run_tool rules to bzl/rules/run_tool (7b7883)
  • Move txt rules to bzl/rules/txt (d35655)
  • Move sh rules to bzl/rules/sh (8e6a6a)
  • Move pkg rules to bzl/rules/pkg (3ef140)
  • Move vial rules to bzl/rules/vial (266c83)
  • Move md rules to bzl/rules/md (5f04d3)
  • Move template_files rules to bzl/rules/template_files (72daa0)
  • Move bazel shell worker rules to bzl/rules/bazel_shell_worker (0a9c1c)
  • Move print_deps rules to bzl/rules/print_deps (66c437)
  • Move toml rules to bzl/rules/toml (0b824f)
  • Move transitive_sources rules to bzl/rules/transitive_sources (a4223b)
  • Move qt rules to bzl/rules/qt (ed00dc)
  • Move shellcheck rules to bzl/rules/shellcheck (3b7a56)
  • Move drawio rules to bzl/rules/drawio (b9c893)
  • Move hugo toolchain to bzl/rules/hugo (cdefa3)
  • Move git rules to //bzl/rules/git, move resolved_toolchain to bzl/rules (51b133)
  • Move hugo rules to bzl/rules/hugo, move go rules to /bzl/rules/go (cb079f)
  • Move al_repo_map to bzl/rules (a77a38)
  • Split tools/deps.MODULE.bazel (050ae5)
  • Bump bazel version, split the root MODULE file, add bzl/rules/ansible (981a38)
  • Add i18n support to hugo, move changelog and bzl to the meta-links section (438056)
  • Update docsy theme, fix page meta links (41cd34)
  • Add changelog for all packages (a6ebf9)
  • Fix git rules, add changelog (0c3c3e)
  • Add ansible/collections, add git rules (827c23)
  • Add bzl_target_doc (c5636e)
  • Update readmes (2c9d62)
  • Add al_vial_submissions macro, update titles and descriptions (79c826)
  • Fix hugo tags page, fix hugo serve (9f2716)
  • Pass dirs to hugo using flags, disable hugo cache (640248)
  • Fix al_hugo_binary script (302d98)
  • Fix paths in al_hugo_binary (68e038)
  • Add timeout to drawio commands (614801)
  • Check whether drawio build was successful (ec743a)
  • Add CI, fix parallel drawio build (b77a1e)
  • Add layouts to hugo, add drawio svgs to docs (f53618)
  • Allow to use several configs in al_hugo_site (063500)
  • Use hugo data to render books, add more books (c4da46)
  • Add drawio svgs (4fa76b)
  • Add al_drawio_run_binary rule, remove al_drawio_diagram (c2236a)
  • Add al_drawio_diagram rule (aff5da)
  • Use html links in README.md, fix hugo site layout (8de573)
  • Modify hugo site layout (f82a26)
  • Add more books, fix hugo layout, rename README.md files to _index.md (7d4d7a)
  • Add env_script to hugo rules (f99ec0)
  • Add more books to books.toml, add al_hugo_run_binary target (5786f9)
  • Rename hugo rules, combine misc and docs sites into one (a535c2)
  • Use separate attributes instead of a singular tree in al_hugo_site (45f549)
  • Add al_hugo_site_binary, al_hugo_site_run_binary (30da07)
  • Fix postcss modules by moving all dependencies to //:node_modules (630911)
  • Add more debug for al_hugo_site, add author section to books.md (9ae8c0)
  • Fix postcss invocation in hugo/sites/misc (fb79a3)
  • Add al_repo_map extension, add hugo, drawio, and shellcheck toolchains (799a73)
  • Remove al_hugo_theme and al_hugo_module, fix al_hugo_serve (3619a7)
  • Add hugo site rules, setup build for hugo/sites/misc (b7b15d)
  • Add al_hugo_theme, al_hugo_theme_info, al_hugo_build, fix docsy source (db6acf)
  • Use subpackages() to build docs instead of writing queries to the tree (ba7b67)
  • Remove al_bzl_library macro, generate stardoc targets in md/docs (d55f01)
  • Use query results instead of a static variable to generate stardoc (bad943)
  • Remove bzl/vars/labels.bzl (4c0570)
  • Use rule actions to validate toml files instead of an aspect (d59f5b)
  • Fix names in al_toml_validate (235bf0)
  • Add al_toml_validate aspect to valide al_toml_data (fd2732)
  • Replace al_toml_data macro with a dedicated rule (2a70ae)
  • Add al_readme plugin, split variables in /bzl/vars (9212dc)
  • Add //bzl/vars:bzl_libs, use write_source_file to generate md files (936a02)
  • Add al_bzl_library_map macro, add a registry module, add md/docs (920e5b)
  • Move all public bzl API into separate files (732d37)
  • Add several macros, add data/misc, add go/template-files (86fa17)
  • Rename starlark/bazel to bzl (56be34)

6.1 - al_drawio_run_binary

al_drawio_run_binary

load("@com_alwaldend_src//bzl/rules/drawio:al_drawio_run_binary.bzl", "al_drawio_run_binary")

al_drawio_run_binary(name, srcs, out, arguments, cmd_timeout)

Run drawio a a build action

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources List of labels optional []
out Output Label; nonconfigurable required
arguments Arguments, location statements are expanded List of strings required
cmd_timeout Drawio command timeout String optional "1m"

6.2 - al_drawio_toolchain

al_drawio_toolchain

load("@com_alwaldend_src//bzl/rules/drawio:al_drawio_toolchain.bzl", "al_drawio_toolchain")

al_drawio_toolchain(name, drawio)

Drawio toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
drawio Drawio binary Label required

6.3 - Bazel targets

NameInfo
al_drawio_run_binary
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_run_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_drawio_run_binary.stardoc
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_run_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/drawio:al_drawio_run_binary.stardoc.md
visibility
  • //visibility:private
al_drawio_run_binary.stardoc_raw
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_run_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/drawio:al_drawio_run_binary.stardoc_raw.md
visibility
  • //visibility:private
al_drawio_run_binary.stardoc_raw.extract
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_run_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/drawio:al_drawio_run_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/drawio:al_drawio_run_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_drawio_toolchain
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_drawio_toolchain.stardoc
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/drawio:al_drawio_toolchain.stardoc.md
visibility
  • //visibility:private
al_drawio_toolchain.stardoc_raw
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/drawio:al_drawio_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_drawio_toolchain.stardoc_raw.extract
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:al_drawio_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/drawio:al_drawio_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/drawio:al_drawio_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/drawio/BUILD.bazel:7:17
name//bzl/rules/drawio:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/drawio/BUILD.bazel:7:17
name//bzl/rules/drawio:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/drawio:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/drawio/BUILD.bazel:7:17
name//bzl/rules/drawio:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/drawio:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/drawio/BUILD.bazel:7:17
name//bzl/rules/drawio:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/drawio/BUILD.bazel:7:17
name//bzl/rules/drawio:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/drawio:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/drawio/BUILD.bazel:12:19
name//bzl/rules/drawio:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/drawio/BUILD.bazel:42:10
name//bzl/rules/drawio:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/drawio/BUILD.bazel:42:10
name//bzl/rules/drawio:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/drawio/BUILD.bazel:42:10
name//bzl/rules/drawio:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
toolchain_remote_linux_x86_64
locationbzl/rules/drawio/BUILD.bazel:26:10
name//bzl/rules/drawio:toolchain_remote_linux_x86_64
ruleClasstoolchain
visibility
  • //visibility:public
toolchain_remote_linux_x86_64_impl
locationbzl/rules/drawio/BUILD.bazel:33:20
name//bzl/rules/drawio:toolchain_remote_linux_x86_64_impl
ruleClassal_drawio_toolchain
visibility
  • //visibility:private
toolchain_type
locationbzl/rules/drawio/BUILD.bazel:21:15
name//bzl/rules/drawio:toolchain_type
ruleClasstoolchain_type
visibility
  • //visibility:public

6.4 - Changelog

  • Use current pid as a display number in xvfb (4c0d66)
  • Run pnpm install before the build (bad716)
  • Use another algorithm for the xvfb display number (ca7129)
  • Disable cleanup in al_drawio_run_binary (2fcf9d)
  • Fix stderr in al_drawio_run_binary (c65332)
  • Add external ansible collections, rename some deps (99b3c7)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move drawio rules to bzl/rules/drawio (b9c893)

7 - Git

Git rules

7.1 - al_git_binary

al_git_binary

load("@com_alwaldend_src//bzl/rules/git:al_git_binary.bzl", "al_git_binary")

al_git_binary(name, src, arguments)

Run git binary

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
src Git info Label required
arguments Git arguments (templated) List of strings optional []

7.2 - al_git_changelog

al_git_changelog

load("@com_alwaldend_src//bzl/rules/git:al_git_changelog.bzl", "al_git_changelog")

al_git_changelog(name, visibility, git_binary, subpackages)

Create changelog target

PARAMETERS

Name Description Default Value
name target name prefix none
visibility visibility none
git_binary

-

"@git//:git"
subpackages subpackages []

7.3 - al_git_library

al_git_library

load("@com_alwaldend_src//bzl/rules/git:al_git_library.bzl", "al_git_library")

al_git_library(name, git_archive)

Define git information

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
git_archive Git directory Label required

7.4 - al_git_library_info

AlGitLibraryInfo

load("@com_alwaldend_src//bzl/rules/git:al_git_library_info.bzl", "AlGitLibraryInfo")

AlGitLibraryInfo(git_archive)

Git library info

FIELDS

Name Description
git_archive Git directory archive (.tar)

7.5 - al_git_repo

al_git_repo

load("@com_alwaldend_src//bzl/rules/git:al_git_repo.bzl", "al_git_repo")

al_git_repo(name, repo_mapping)

Repository rule that exports .git directory

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this repository. Name required
repo_mapping In WORKSPACE context only: a dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.

For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target, it should actually resolve that dependency within globally-declared @bar (@bar//some:target).

This attribute is not supported in MODULE.bazel context (when invoking a repository rule inside a module extension’s implementation function).
Dictionary: String -> String optional

7.6 - al_git_resolved_toolchain

al_git_resolved_toolchain

load("@com_alwaldend_src//bzl/rules/git:al_git_resolved_toolchain.bzl", "al_git_resolved_toolchain")

al_git_resolved_toolchain(name)

Resolved git toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required

7.7 - al_git_run_binary

al_git_run_binary

load("@com_alwaldend_src//bzl/rules/git:al_git_run_binary.bzl", "al_git_run_binary")

al_git_run_binary(name, srcs, outs, arguments, git)

Run a git binary as a build action

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Files to be made available List of labels optional []
outs Outputs List of labels; nonconfigurable required
arguments Arguments (Location is expanded) List of strings optional []
git Git binary Label required

7.8 - al_git_toolchain

al_git_toolchain

load("@com_alwaldend_src//bzl/rules/git:al_git_toolchain.bzl", "al_git_toolchain")

al_git_toolchain(name, label_bin, local_bin)

Local git toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
label_bin Label binary to use Label optional None
local_bin Local binary to use String optional ""

7.9 - Bazel targets

NameInfo
al_git_binary
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_git_binary.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_binary.stardoc.md
visibility
  • //visibility:private
al_git_binary.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_binary.stardoc_raw.md
visibility
  • //visibility:private
al_git_binary.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_changelog
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_changelog
ruleClassbzl_library
visibility
  • //visibility:public
al_git_changelog.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_changelog.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_changelog.stardoc.md
visibility
  • //visibility:private
al_git_changelog.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_changelog.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_changelog.stardoc_raw.md
visibility
  • //visibility:private
al_git_changelog.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_changelog.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_changelog.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_changelog.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_library
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library
ruleClassbzl_library
visibility
  • //visibility:public
al_git_library.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_library.stardoc.md
visibility
  • //visibility:private
al_git_library.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_library.stardoc_raw.md
visibility
  • //visibility:private
al_git_library.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_library.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_library.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_library_info
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library_info
ruleClassbzl_library
visibility
  • //visibility:public
al_git_library_info.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library_info.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_library_info.stardoc.md
visibility
  • //visibility:private
al_git_library_info.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library_info.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_library_info.stardoc_raw.md
visibility
  • //visibility:private
al_git_library_info.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_library_info.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_library_info.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_library_info.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_repo
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_repo
ruleClassbzl_library
visibility
  • //visibility:public
al_git_repo.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_repo.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_repo.stardoc.md
visibility
  • //visibility:private
al_git_repo.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_repo.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_repo.stardoc_raw.md
visibility
  • //visibility:private
al_git_repo.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_repo.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_repo.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_repo.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_resolved_toolchain
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_resolved_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_git_resolved_toolchain.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_resolved_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_resolved_toolchain.stardoc.md
visibility
  • //visibility:private
al_git_resolved_toolchain.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_resolved_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_resolved_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_git_resolved_toolchain.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_resolved_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_resolved_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_resolved_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_run_binary
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_run_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_git_run_binary.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_run_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_run_binary.stardoc.md
visibility
  • //visibility:private
al_git_run_binary.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_run_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_run_binary.stardoc_raw.md
visibility
  • //visibility:private
al_git_run_binary.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_run_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_run_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_run_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_git_toolchain
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_git_toolchain.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/git:al_git_toolchain.stardoc.md
visibility
  • //visibility:private
al_git_toolchain.stardoc_raw
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/git:al_git_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_git_toolchain.stardoc_raw.extract
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:al_git_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/git:al_git_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/git:al_git_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/git/BUILD.bazel:7:17
name//bzl/rules/git:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/git/BUILD.bazel:7:17
name//bzl/rules/git:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/git:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/git/BUILD.bazel:7:17
name//bzl/rules/git:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/git:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/git/BUILD.bazel:7:17
name//bzl/rules/git:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/git/BUILD.bazel:7:17
name//bzl/rules/git:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/git:changelog.template.md
visibility
  • //visibility:private
git_log_config
locationbzl/rules/git/BUILD.bazel:41:10
name//bzl/rules/git:git_log_config
ruleClassfilegroup
visibility
  • //visibility:public
libs
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/git/BUILD.bazel:12:19
name//bzl/rules/git:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/git/BUILD.bazel:64:10
name//bzl/rules/git:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/git/BUILD.bazel:64:10
name//bzl/rules/git:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/git/BUILD.bazel:64:10
name//bzl/rules/git:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
toolchain_local
locationbzl/rules/git/BUILD.bazel:52:10
name//bzl/rules/git:toolchain_local
ruleClasstoolchain
visibility
  • //visibility:public
toolchain_local_impl
locationbzl/rules/git/BUILD.bazel:59:17
name//bzl/rules/git:toolchain_local_impl
ruleClassal_git_toolchain
visibility
  • //visibility:private
toolchain_type
locationbzl/rules/git/BUILD.bazel:47:15
name//bzl/rules/git:toolchain_type
ruleClasstoolchain_type
visibility
  • //visibility:public

7.10 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Add bzl/package_groups, remove pkg_tar from a couple of rules (116823)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move drawio rules to bzl/rules/drawio (b9c893)
  • Move hugo toolchain to bzl/rules/hugo (cdefa3)
  • Move git rules to //bzl/rules/git, move resolved_toolchain to bzl/rules (51b133)

8 - Go

Go rules

8.1 - al_go_repository

al_go_repository

al_go_repository = use_extension("@com_alwaldend_src//bzl/rules/go:al_go_repository.bzl", "al_go_repository")
al_go_repository.go_repository(name, importpath, sum, version)

Extension wrapper around go_repository (useless because you can just call use_repo_rule)

TAG CLASSES

go_repository

Attributes

Name Description Type Mandatory Default
name Name Name required
importpath importpath String required
sum checksum String optional ""
version - String required

8.2 - Bazel targets

NameInfo
al_go_repository
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:al_go_repository
ruleClassbzl_library
visibility
  • //visibility:public
al_go_repository.stardoc
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:al_go_repository.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/go:al_go_repository.stardoc.md
visibility
  • //visibility:private
al_go_repository.stardoc_raw
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:al_go_repository.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/go:al_go_repository.stardoc_raw.md
visibility
  • //visibility:private
al_go_repository.stardoc_raw.extract
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:al_go_repository.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/go:al_go_repository.stardoc_raw.extract.binaryproto
  • //bzl/rules/go:al_go_repository.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/go/BUILD.bazel:6:17
name//bzl/rules/go:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/go/BUILD.bazel:6:17
name//bzl/rules/go:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/go:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/go/BUILD.bazel:6:17
name//bzl/rules/go:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/go:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/go/BUILD.bazel:6:17
name//bzl/rules/go:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/go/BUILD.bazel:6:17
name//bzl/rules/go:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/go:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/go/BUILD.bazel:11:19
name//bzl/rules/go:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/go/BUILD.bazel:26:10
name//bzl/rules/go:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/go/BUILD.bazel:26:10
name//bzl/rules/go:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/go/BUILD.bazel:26:10
name//bzl/rules/go:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

8.3 - Changelog

  • Add al_go_platform rules, add native_binary support to al_repo_map (8ca07d)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move hugo rules to bzl/rules/hugo, move go rules to /bzl/rules/go (cb079f)

9 - Helm

Helm rules

9.1 - al_helm_binary

al_helm_binary

load("@com_alwaldend_src//bzl/rules/helm:al_helm_binary.bzl", "al_helm_binary")

al_helm_binary(name, arguments, cd, chart)

Helm binary

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
arguments Helm arguments List of strings optional []
cd Cd to a directory before running bazel String optional ""
chart Helm chart Label optional None

9.2 - al_helm_chart

al_helm_chart

load("@com_alwaldend_src//bzl/rules/helm:al_helm_chart.bzl", "al_helm_chart")

al_helm_chart(name, deps, package, source)

Helm chart

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
deps Helm chart deps List of labels optional []
package Helm chart package Label optional None
source Helm chart source Label optional None

9.3 - al_helm_chart_info

AlHelmChartInfo

load("@com_alwaldend_src//bzl/rules/helm:al_helm_chart_info.bzl", "AlHelmChartInfo")

AlHelmChartInfo(source, package, deps, files_info)

Information about a helm chart

FIELDS

Name Description
source Chart sources (PackageFilegroupInfo, optional)
package Chart package (tgz file)
deps Chart deps (depset of AlHelmChartInfo)
files_info Chart file structure (PackageFilesInfo)

9.4 - al_helm_deps

al_helm_deps

al_helm_deps = use_extension("@com_alwaldend_src//bzl/rules/helm:al_helm_deps.bzl", "al_helm_deps")
al_helm_deps.from_lock(chart_lock, debug, helm_lock)

Extension to download helm dependencies

TAG CLASSES

from_lock

Attributes

Name Description Type Mandatory Default
chart_lock Lock label Label required
debug Enable debug Boolean optional False
helm_lock Helm lock label Label required

9.5 - al_helm_toolchain

al_helm_toolchain

load("@com_alwaldend_src//bzl/rules/helm:al_helm_toolchain.bzl", "al_helm_toolchain")

al_helm_toolchain(name, helm)

Helm toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
helm Helm binary Label required

9.6 - Bazel targets

NameInfo
al_helm_binary
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_helm_binary.stardoc
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/helm:al_helm_binary.stardoc.md
visibility
  • //visibility:private
al_helm_binary.stardoc_raw
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/helm:al_helm_binary.stardoc_raw.md
visibility
  • //visibility:private
al_helm_binary.stardoc_raw.extract
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/helm:al_helm_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/helm:al_helm_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_helm_chart
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart
ruleClassbzl_library
visibility
  • //visibility:public
al_helm_chart.stardoc
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/helm:al_helm_chart.stardoc.md
visibility
  • //visibility:private
al_helm_chart.stardoc_raw
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/helm:al_helm_chart.stardoc_raw.md
visibility
  • //visibility:private
al_helm_chart.stardoc_raw.extract
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/helm:al_helm_chart.stardoc_raw.extract.binaryproto
  • //bzl/rules/helm:al_helm_chart.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_helm_chart_info
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart_info
ruleClassbzl_library
visibility
  • //visibility:public
al_helm_chart_info.stardoc
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart_info.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/helm:al_helm_chart_info.stardoc.md
visibility
  • //visibility:private
al_helm_chart_info.stardoc_raw
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart_info.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/helm:al_helm_chart_info.stardoc_raw.md
visibility
  • //visibility:private
al_helm_chart_info.stardoc_raw.extract
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_chart_info.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/helm:al_helm_chart_info.stardoc_raw.extract.binaryproto
  • //bzl/rules/helm:al_helm_chart_info.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_helm_deps
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_deps
ruleClassbzl_library
visibility
  • //visibility:public
al_helm_deps.stardoc
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_deps.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/helm:al_helm_deps.stardoc.md
visibility
  • //visibility:private
al_helm_deps.stardoc_raw
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_deps.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/helm:al_helm_deps.stardoc_raw.md
visibility
  • //visibility:private
al_helm_deps.stardoc_raw.extract
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_deps.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/helm:al_helm_deps.stardoc_raw.extract.binaryproto
  • //bzl/rules/helm:al_helm_deps.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_helm_toolchain
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_helm_toolchain.stardoc
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/helm:al_helm_toolchain.stardoc.md
visibility
  • //visibility:private
al_helm_toolchain.stardoc_raw
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/helm:al_helm_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_helm_toolchain.stardoc_raw.extract
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:al_helm_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/helm:al_helm_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/helm:al_helm_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/helm/BUILD.bazel:7:17
name//bzl/rules/helm:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/helm/BUILD.bazel:7:17
name//bzl/rules/helm:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/helm:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/helm/BUILD.bazel:7:17
name//bzl/rules/helm:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/helm:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/helm/BUILD.bazel:7:17
name//bzl/rules/helm:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/helm/BUILD.bazel:7:17
name//bzl/rules/helm:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/helm:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/helm/BUILD.bazel:12:19
name//bzl/rules/helm:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/helm/BUILD.bazel:57:10
name//bzl/rules/helm:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/helm/BUILD.bazel:57:10
name//bzl/rules/helm:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/helm/BUILD.bazel:57:10
name//bzl/rules/helm:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
toolchain_remote_linux_amd64
locationbzl/rules/helm/BUILD.bazel:41:10
name//bzl/rules/helm:toolchain_remote_linux_amd64
ruleClasstoolchain
visibility
  • //visibility:public
toolchain_remote_linux_amd64_impl
locationbzl/rules/helm/BUILD.bazel:48:18
name//bzl/rules/helm:toolchain_remote_linux_amd64_impl
ruleClassal_helm_toolchain
visibility
  • //visibility:private
toolchain_type
locationbzl/rules/helm/BUILD.bazel:36:15
name//bzl/rules/helm:toolchain_type
ruleClasstoolchain_type
visibility
  • //visibility:public

9.7 - Changelog

  • Remove pkg_tar from helm and helm rules (ea1905)
  • Add dependency support to bzl/rules/helm, add the rancher chart (f0465f)

10 - Http server

Simple http server

10.1 - al_http_server_binary

al_http_server_binary

load("@com_alwaldend_src//bzl/rules/http_server:al_http_server_binary.bzl", "al_http_server_binary")

al_http_server_binary(name, srcs, arguments)

Run a http server

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Files to symlink List of labels optional []
arguments Arguments List of strings optional []

10.2 - Bazel targets

NameInfo
al_http_server_binary
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:al_http_server_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_http_server_binary.stardoc
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:al_http_server_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/http_server:al_http_server_binary.stardoc.md
visibility
  • //visibility:private
al_http_server_binary.stardoc_raw
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:al_http_server_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/http_server:al_http_server_binary.stardoc_raw.md
visibility
  • //visibility:private
al_http_server_binary.stardoc_raw.extract
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:al_http_server_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/http_server:al_http_server_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/http_server:al_http_server_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/http_server/BUILD.bazel:6:17
name//bzl/rules/http_server:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/http_server/BUILD.bazel:6:17
name//bzl/rules/http_server:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/http_server:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/http_server/BUILD.bazel:6:17
name//bzl/rules/http_server:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/http_server:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/http_server/BUILD.bazel:6:17
name//bzl/rules/http_server:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/http_server/BUILD.bazel:6:17
name//bzl/rules/http_server:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/http_server:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/http_server/BUILD.bazel:11:19
name//bzl/rules/http_server:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/http_server/BUILD.bazel:22:10
name//bzl/rules/http_server:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/http_server/BUILD.bazel:22:10
name//bzl/rules/http_server:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/http_server/BUILD.bazel:22:10
name//bzl/rules/http_server:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

10.3 - Changelog

  • Add ci config, choose hugo url based on it (8932e6)
  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)

11 - Hugo

Hugo rules

11.1 - al_hugo_binary

al_hugo_binary

load("@com_alwaldend_src//bzl/rules/hugo:al_hugo_binary.bzl", "al_hugo_binary")

al_hugo_binary(name, arguments, site)

Run a hugo command

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
arguments Hugo arguments List of strings optional []
site Hugo site Label required

11.2 - al_hugo_run_binary

al_hugo_run_binary

load("@com_alwaldend_src//bzl/rules/hugo:al_hugo_run_binary.bzl", "al_hugo_run_binary")

al_hugo_run_binary(name, outs, arguments, hugo, out_dirs)

Run hugo binary as a build action

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
outs Output files List of labels; nonconfigurable optional []
arguments Hugo arguments List of strings optional []
hugo Hugo binary to use Label required
out_dirs Output directories List of strings optional []

11.3 - al_hugo_site

al_hugo_site

load("@com_alwaldend_src//bzl/rules/hugo:al_hugo_site.bzl", "al_hugo_site")

al_hugo_site(name, env, git, postcss, site, tools)

Define a hugo site

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
env Hugo environment variables (support location statements, support make variables, support shell commands) Dictionary: String -> String optional {}
git Git info Label optional None
postcss Postcss target Label required
site Hugo site archive Label required
tools Tools that should be available for the build List of labels optional []

11.4 - al_hugo_site_info

AlHugoSiteInfo

load("@com_alwaldend_src//bzl/rules/hugo:al_hugo_site_info.bzl", "AlHugoSiteInfo")

AlHugoSiteInfo(site_archive, git_archive, env, env_script)

Information about a hugo site

FIELDS

Name Description
site_archive Site archive File (.tar)
git_archive Git archive (.tar)
env Environment variables
env_script Shell script to export env variables

11.5 - al_hugo_toolchain

al_hugo_toolchain

load("@com_alwaldend_src//bzl/rules/hugo:al_hugo_toolchain.bzl", "al_hugo_toolchain")

al_hugo_toolchain(name, hugo)

Hugo toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
hugo Hugo binary Label required

11.6 - Bazel targets

NameInfo
al_hugo_binary
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_binary.stardoc
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/hugo:al_hugo_binary.stardoc.md
visibility
  • //visibility:private
al_hugo_binary.stardoc_raw
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/hugo:al_hugo_binary.stardoc_raw.md
visibility
  • //visibility:private
al_hugo_binary.stardoc_raw.extract
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/hugo:al_hugo_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/hugo:al_hugo_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_hugo_run_binary
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_run_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_run_binary.stardoc
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_run_binary.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/hugo:al_hugo_run_binary.stardoc.md
visibility
  • //visibility:private
al_hugo_run_binary.stardoc_raw
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_run_binary.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/hugo:al_hugo_run_binary.stardoc_raw.md
visibility
  • //visibility:private
al_hugo_run_binary.stardoc_raw.extract
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_run_binary.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/hugo:al_hugo_run_binary.stardoc_raw.extract.binaryproto
  • //bzl/rules/hugo:al_hugo_run_binary.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_hugo_site
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_site.stardoc
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/hugo:al_hugo_site.stardoc.md
visibility
  • //visibility:private
al_hugo_site.stardoc_raw
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/hugo:al_hugo_site.stardoc_raw.md
visibility
  • //visibility:private
al_hugo_site.stardoc_raw.extract
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/hugo:al_hugo_site.stardoc_raw.extract.binaryproto
  • //bzl/rules/hugo:al_hugo_site.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_hugo_site_info
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site_info
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_site_info.stardoc
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site_info.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/hugo:al_hugo_site_info.stardoc.md
visibility
  • //visibility:private
al_hugo_site_info.stardoc_raw
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site_info.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/hugo:al_hugo_site_info.stardoc_raw.md
visibility
  • //visibility:private
al_hugo_site_info.stardoc_raw.extract
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_site_info.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/hugo:al_hugo_site_info.stardoc_raw.extract.binaryproto
  • //bzl/rules/hugo:al_hugo_site_info.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_hugo_toolchain
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_toolchain.stardoc
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/hugo:al_hugo_toolchain.stardoc.md
visibility
  • //visibility:private
al_hugo_toolchain.stardoc_raw
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/hugo:al_hugo_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_hugo_toolchain.stardoc_raw.extract
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:al_hugo_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/hugo:al_hugo_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/hugo:al_hugo_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/hugo/BUILD.bazel:7:17
name//bzl/rules/hugo:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/hugo/BUILD.bazel:7:17
name//bzl/rules/hugo:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/hugo:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/hugo/BUILD.bazel:7:17
name//bzl/rules/hugo:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/hugo:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/hugo/BUILD.bazel:7:17
name//bzl/rules/hugo:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/hugo/BUILD.bazel:7:17
name//bzl/rules/hugo:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/hugo:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/hugo/BUILD.bazel:12:19
name//bzl/rules/hugo:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/hugo/BUILD.bazel:56:10
name//bzl/rules/hugo:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/hugo/BUILD.bazel:56:10
name//bzl/rules/hugo:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/hugo/BUILD.bazel:56:10
name//bzl/rules/hugo:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
toolchain_remote_linux_amd64
locationbzl/rules/hugo/BUILD.bazel:40:10
name//bzl/rules/hugo:toolchain_remote_linux_amd64
ruleClasstoolchain
visibility
  • //visibility:public
toolchain_remote_linux_amd64_impl
locationbzl/rules/hugo/BUILD.bazel:47:18
name//bzl/rules/hugo:toolchain_remote_linux_amd64_impl
ruleClassal_hugo_toolchain
visibility
  • //visibility:private
toolchain_type
locationbzl/rules/hugo/BUILD.bazel:35:15
name//bzl/rules/hugo:toolchain_type
ruleClasstoolchain_type
visibility
  • //visibility:public

11.7 - Changelog

  • Fix hugo build in CI (70f831)
  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Partially remove pkg_tar from hugo, remove several registry modules (f59f94)
  • Add external ansible collections, rename some deps (99b3c7)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move drawio rules to bzl/rules/drawio (b9c893)
  • Move hugo toolchain to bzl/rules/hugo (cdefa3)
  • Move hugo rules to bzl/rules/hugo, move go rules to /bzl/rules/go (cb079f)

12 - Install file

Install file rules

12.1 - al_install_file

al_install_file

load("@com_alwaldend_src//bzl/rules/install_file:al_install_file.bzl", "al_install_file")

al_install_file(name, args, install_file_label, visibility, **py_binary_kwargs)

Create py_binary target to install file

PARAMETERS

Name Description Default Value
name target name none
args install-file args []
install_file_label

-

"//py/install-file:lib"
visibility

-

["//visibility:public"]
py_binary_kwargs

-

none

12.2 - Bazel targets

NameInfo
al_install_file
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:al_install_file
ruleClassbzl_library
visibility
  • //visibility:public
al_install_file.stardoc
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:al_install_file.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/install_file:al_install_file.stardoc.md
visibility
  • //visibility:private
al_install_file.stardoc_raw
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:al_install_file.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/install_file:al_install_file.stardoc_raw.md
visibility
  • //visibility:private
al_install_file.stardoc_raw.extract
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:al_install_file.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/install_file:al_install_file.stardoc_raw.extract.binaryproto
  • //bzl/rules/install_file:al_install_file.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/install_file/BUILD.bazel:6:17
name//bzl/rules/install_file:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/install_file/BUILD.bazel:6:17
name//bzl/rules/install_file:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/install_file:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/install_file/BUILD.bazel:6:17
name//bzl/rules/install_file:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/install_file:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/install_file/BUILD.bazel:6:17
name//bzl/rules/install_file:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/install_file/BUILD.bazel:6:17
name//bzl/rules/install_file:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/install_file:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/install_file/BUILD.bazel:11:19
name//bzl/rules/install_file:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/install_file/BUILD.bazel:21:10
name//bzl/rules/install_file:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/install_file/BUILD.bazel:21:10
name//bzl/rules/install_file:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/install_file/BUILD.bazel:21:10
name//bzl/rules/install_file:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

12.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move ansible and leetcode rules to bzl/rules (0d9b39)

13 - Leetcode

Leetcode rules

13.1 - al_leetcode_submissions

al_leetcode_submissions

load("@com_alwaldend_src//bzl/rules/leetcode:al_leetcode_submissions.bzl", "al_leetcode_submissions")

al_leetcode_submissions(name, srcs, package_dir, visibility, **kwargs)

Generate leetcode submission targets

PARAMETERS

Name Description Default Value
name generated md archive name none
srcs leetcode submission configs none
package_dir package_dir to use none
visibility visibility None
kwargs kwargs for al_template_files none

13.2 - Bazel targets

NameInfo
al_leetcode_submissions
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:al_leetcode_submissions
ruleClassbzl_library
visibility
  • //visibility:public
al_leetcode_submissions.stardoc
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:al_leetcode_submissions.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/leetcode:al_leetcode_submissions.stardoc.md
visibility
  • //visibility:private
al_leetcode_submissions.stardoc_raw
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:al_leetcode_submissions.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/leetcode:al_leetcode_submissions.stardoc_raw.md
visibility
  • //visibility:private
al_leetcode_submissions.stardoc_raw.extract
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:al_leetcode_submissions.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/leetcode:al_leetcode_submissions.stardoc_raw.extract.binaryproto
  • //bzl/rules/leetcode:al_leetcode_submissions.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/leetcode/BUILD.bazel:6:17
name//bzl/rules/leetcode:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/leetcode/BUILD.bazel:6:17
name//bzl/rules/leetcode:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/leetcode:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/leetcode/BUILD.bazel:6:17
name//bzl/rules/leetcode:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/leetcode:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/leetcode/BUILD.bazel:6:17
name//bzl/rules/leetcode:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/leetcode/BUILD.bazel:6:17
name//bzl/rules/leetcode:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/leetcode:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/leetcode/BUILD.bazel:11:19
name//bzl/rules/leetcode:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/leetcode/BUILD.bazel:24:10
name//bzl/rules/leetcode:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/leetcode/BUILD.bazel:24:10
name//bzl/rules/leetcode:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/leetcode/BUILD.bazel:24:10
name//bzl/rules/leetcode:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

13.3 - Changelog

  • Remove pkg_tar from leetcode rules (5e3ad2)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move ansible and leetcode rules to bzl/rules (0d9b39)

14 - Lua

Lua rules

14.1 - al_lua_library

al_lua_library

load("@com_alwaldend_src//bzl/rules/lua:al_lua_library.bzl", "al_lua_library")

al_lua_library(name, srcs, check, stylua_config_label, stylua_label, pkg_tar_kwargs, visibility)

Generate targets for a lua library

Targets:

  • ${name}: pkg_tar
  • ${name}-stylua-fix: al_run_tool executable
  • ${name}-stylua-test: al_run_tool test

PARAMETERS

Name Description Default Value
name library name none
srcs library sources none
check if set, only these files will be checked []
stylua_config_label

-

"//lua:stylua-config"
stylua_label

-

"@com_alwaldend_src_cargo//:stylua__stylua"
pkg_tar_kwargs kwargs for pkg_tar {}
visibility visibility ["//visibility:public"]

14.2 - Bazel targets

NameInfo
al_lua_library
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:al_lua_library
ruleClassbzl_library
visibility
  • //visibility:public
al_lua_library.stardoc
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:al_lua_library.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/lua:al_lua_library.stardoc.md
visibility
  • //visibility:private
al_lua_library.stardoc_raw
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:al_lua_library.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/lua:al_lua_library.stardoc_raw.md
visibility
  • //visibility:private
al_lua_library.stardoc_raw.extract
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:al_lua_library.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/lua:al_lua_library.stardoc_raw.extract.binaryproto
  • //bzl/rules/lua:al_lua_library.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/lua/BUILD.bazel:6:17
name//bzl/rules/lua:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/lua/BUILD.bazel:6:17
name//bzl/rules/lua:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/lua:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/lua/BUILD.bazel:6:17
name//bzl/rules/lua:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/lua:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/lua/BUILD.bazel:6:17
name//bzl/rules/lua:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/lua/BUILD.bazel:6:17
name//bzl/rules/lua:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/lua:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/lua/BUILD.bazel:11:19
name//bzl/rules/lua:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/lua/BUILD.bazel:22:10
name//bzl/rules/lua:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/lua/BUILD.bazel:22:10
name//bzl/rules/lua:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/lua/BUILD.bazel:22:10
name//bzl/rules/lua:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

14.3 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move lua rules to bzl/rules/lua, move run_tool rules to bzl/rules/run_tool (7b7883)

15 - Md

Md rules

15.1 - al_md_data

al_md_data

load("@com_alwaldend_src//bzl/rules/md:al_md_data.bzl", "al_md_data")

al_md_data(name, srcs, deps, **kwargs)

Markdown data backed by a filegroup

Targets:

  • ${name}: filegroup

PARAMETERS

Name Description Default Value
name filegroup name none
srcs markdown files none
deps deps []
kwargs filegroup kwargs none

15.2 - Bazel targets

NameInfo
al_md_data
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:al_md_data
ruleClassbzl_library
visibility
  • //visibility:public
al_md_data.stardoc
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:al_md_data.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/md:al_md_data.stardoc.md
visibility
  • //visibility:private
al_md_data.stardoc_raw
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:al_md_data.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/md:al_md_data.stardoc_raw.md
visibility
  • //visibility:private
al_md_data.stardoc_raw.extract
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:al_md_data.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/md:al_md_data.stardoc_raw.extract.binaryproto
  • //bzl/rules/md:al_md_data.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/md/BUILD.bazel:6:17
name//bzl/rules/md:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/md/BUILD.bazel:6:17
name//bzl/rules/md:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/md:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/md/BUILD.bazel:6:17
name//bzl/rules/md:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/md:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/md/BUILD.bazel:6:17
name//bzl/rules/md:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/md/BUILD.bazel:6:17
name//bzl/rules/md:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/md:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/md/BUILD.bazel:11:19
name//bzl/rules/md:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/md/BUILD.bazel:19:10
name//bzl/rules/md:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/md/BUILD.bazel:19:10
name//bzl/rules/md:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/md/BUILD.bazel:19:10
name//bzl/rules/md:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

15.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move md rules to bzl/rules/md (5f04d3)

16 - Patch

Patch rules

16.1 - al_apply_patches

al_apply_patches

load("@com_alwaldend_src//bzl/rules/patch:al_apply_patches.bzl", "al_apply_patches")

al_apply_patches(name, src, patches, visibility, **kwargs)

Create a genrule applying patches

PARAMETERS

Name Description Default Value
name genrule name none
src source archive label none
patches patches label none
visibility visibility ["//visibility:public"]
kwargs other genrule kwargs none

16.2 - Bazel targets

NameInfo
al_apply_patches
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:al_apply_patches
ruleClassbzl_library
visibility
  • //visibility:public
al_apply_patches.stardoc
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:al_apply_patches.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/patch:al_apply_patches.stardoc.md
visibility
  • //visibility:private
al_apply_patches.stardoc_raw
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:al_apply_patches.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/patch:al_apply_patches.stardoc_raw.md
visibility
  • //visibility:private
al_apply_patches.stardoc_raw.extract
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:al_apply_patches.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/patch:al_apply_patches.stardoc_raw.extract.binaryproto
  • //bzl/rules/patch:al_apply_patches.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/patch/BUILD.bazel:6:17
name//bzl/rules/patch:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/patch/BUILD.bazel:6:17
name//bzl/rules/patch:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/patch:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/patch/BUILD.bazel:6:17
name//bzl/rules/patch:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/patch:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/patch/BUILD.bazel:6:17
name//bzl/rules/patch:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/patch/BUILD.bazel:6:17
name//bzl/rules/patch:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/patch:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/patch/BUILD.bazel:11:19
name//bzl/rules/patch:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/patch/BUILD.bazel:19:10
name//bzl/rules/patch:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/patch/BUILD.bazel:19:10
name//bzl/rules/patch:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/patch/BUILD.bazel:19:10
name//bzl/rules/patch:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

16.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move patch rules to bzl/rules/patch (b01995)

17 - Pkg

Package rules

17.1 - al_genrule_src

al_genrule_src

load("@com_alwaldend_src//bzl/rules/pkg:al_genrule_src.bzl", "al_genrule_src")

al_genrule_src(name, srcs, visibility)

Create a filegroup and a genrule generating a tar archive

PARAMETERS

Name Description Default Value
name genrule name none
srcs source labels []
visibility

-

["//visibility:public"]

17.2 - al_pkg_tar_combined

al_pkg_tar_combined

load("@com_alwaldend_src//bzl/rules/pkg:al_pkg_tar_combined.bzl", "al_pkg_tar_combined")

al_pkg_tar_combined(name, srcs, strip_components, **kwargs)

Create a genrule combining several tars into one

PARAMETERS

Name Description Default Value
name genrule name none
srcs dicts tar archives ({“label”: “tar label”, “dir”: “target dir”}) []
strip_components value of –stip-components 2
kwargs other genrule kwargs none

17.3 - al_unpack_archives

al_unpack_archives

load("@com_alwaldend_src//bzl/rules/pkg:al_unpack_archives.bzl", "al_unpack_archives")

al_unpack_archives(name, srcs, out)

Unpack several archives using tar into a directory

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs - List of labels required
out - String optional ""

17.4 - Bazel targets

NameInfo
al_genrule_src
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_genrule_src
ruleClassbzl_library
visibility
  • //visibility:public
al_genrule_src.stardoc
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_genrule_src.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/pkg:al_genrule_src.stardoc.md
visibility
  • //visibility:private
al_genrule_src.stardoc_raw
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_genrule_src.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/pkg:al_genrule_src.stardoc_raw.md
visibility
  • //visibility:private
al_genrule_src.stardoc_raw.extract
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_genrule_src.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/pkg:al_genrule_src.stardoc_raw.extract.binaryproto
  • //bzl/rules/pkg:al_genrule_src.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_pkg_tar_combined
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_pkg_tar_combined
ruleClassbzl_library
visibility
  • //visibility:public
al_pkg_tar_combined.stardoc
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_pkg_tar_combined.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/pkg:al_pkg_tar_combined.stardoc.md
visibility
  • //visibility:private
al_pkg_tar_combined.stardoc_raw
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_pkg_tar_combined.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/pkg:al_pkg_tar_combined.stardoc_raw.md
visibility
  • //visibility:private
al_pkg_tar_combined.stardoc_raw.extract
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_pkg_tar_combined.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/pkg:al_pkg_tar_combined.stardoc_raw.extract.binaryproto
  • //bzl/rules/pkg:al_pkg_tar_combined.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_unpack_archives
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_unpack_archives
ruleClassbzl_library
visibility
  • //visibility:public
al_unpack_archives.stardoc
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_unpack_archives.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/pkg:al_unpack_archives.stardoc.md
visibility
  • //visibility:private
al_unpack_archives.stardoc_raw
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_unpack_archives.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/pkg:al_unpack_archives.stardoc_raw.md
visibility
  • //visibility:private
al_unpack_archives.stardoc_raw.extract
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:al_unpack_archives.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/pkg:al_unpack_archives.stardoc_raw.extract.binaryproto
  • //bzl/rules/pkg:al_unpack_archives.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/pkg/BUILD.bazel:6:17
name//bzl/rules/pkg:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/pkg/BUILD.bazel:6:17
name//bzl/rules/pkg:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/pkg:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/pkg/BUILD.bazel:6:17
name//bzl/rules/pkg:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/pkg:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/pkg/BUILD.bazel:6:17
name//bzl/rules/pkg:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/pkg/BUILD.bazel:6:17
name//bzl/rules/pkg:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/pkg:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/pkg/BUILD.bazel:11:19
name//bzl/rules/pkg:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/pkg/BUILD.bazel:21:10
name//bzl/rules/pkg:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/pkg/BUILD.bazel:21:10
name//bzl/rules/pkg:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/pkg/BUILD.bazel:21:10
name//bzl/rules/pkg:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

17.5 - Changelog

  • Use current pid as a display number in xvfb (4c0d66)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move txt rules to bzl/rules/txt (d35655)
  • Move pkg rules to bzl/rules/pkg (3ef140)

18 - Print deps

Aspect to print deps

18.1 - al_print_deps

al_print_deps

load("@com_alwaldend_src//bzl/rules/print_deps:al_print_deps.bzl", "al_print_deps")

al_print_deps()

ASPECT ATTRIBUTES

Name Type
deps String

ATTRIBUTES

18.2 - Bazel targets

NameInfo
al_print_deps
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:al_print_deps
ruleClassbzl_library
visibility
  • //visibility:public
al_print_deps.stardoc
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:al_print_deps.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/print_deps:al_print_deps.stardoc.md
visibility
  • //visibility:private
al_print_deps.stardoc_raw
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:al_print_deps.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/print_deps:al_print_deps.stardoc_raw.md
visibility
  • //visibility:private
al_print_deps.stardoc_raw.extract
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:al_print_deps.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/print_deps:al_print_deps.stardoc_raw.extract.binaryproto
  • //bzl/rules/print_deps:al_print_deps.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/print_deps/BUILD.bazel:6:17
name//bzl/rules/print_deps:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/print_deps/BUILD.bazel:6:17
name//bzl/rules/print_deps:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/print_deps:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/print_deps/BUILD.bazel:6:17
name//bzl/rules/print_deps:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/print_deps:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/print_deps/BUILD.bazel:6:17
name//bzl/rules/print_deps:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/print_deps/BUILD.bazel:6:17
name//bzl/rules/print_deps:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/print_deps:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/print_deps/BUILD.bazel:11:19
name//bzl/rules/print_deps:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/print_deps/BUILD.bazel:19:10
name//bzl/rules/print_deps:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/print_deps/BUILD.bazel:19:10
name//bzl/rules/print_deps:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/print_deps/BUILD.bazel:19:10
name//bzl/rules/print_deps:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

18.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move print_deps rules to bzl/rules/print_deps (66c437)

19 - Py

Python rules

19.1 - al_compile_pip_requirements_combined

al_compile_pip_requirements_combined

load("@com_alwaldend_src//bzl/rules/py:al_compile_pip_requirements_combined.bzl", "al_compile_pip_requirements_combined")

al_compile_pip_requirements_combined(name, srcs, **kwargs)

Create compile_pip_requirements target for several requirement files

PARAMETERS

Name Description Default Value
name compile_pip_requirements name none
srcs list of labels of requirement files to combine none
kwargs kwargs for compile_pip_requirements none

19.2 - al_genrule_with_wheels

al_genrule_with_wheels

load("@com_alwaldend_src//bzl/rules/py:al_genrule_with_wheels.bzl", "al_genrule_with_wheels")

al_genrule_with_wheels(name, wheels, srcs, cmd, **kwargs)

Regular genrule with wheels added to ${PYTHONPATH}

PARAMETERS

Name Description Default Value
name genrule name none
wheels list of wheel labels none
srcs srcs for the genrule []
cmd genrule cmd []
kwargs other genrule kwargs none

19.3 - al_py_binary_shell

al_py_binary_shell

load("@com_alwaldend_src//bzl/rules/py:al_py_binary_shell.bzl", "al_py_binary_shell")

al_py_binary_shell(name, deps, srcs, shell_type, shell_label, **kwargs)

Create a py_binary target that allows you to run commands in proper python environment

PARAMETERS

Name Description Default Value
name target name none
deps py_binary deps []
srcs py_binary srcs []
shell_type ${BAZEL_PYTHON_SHELL_TYPE} "python"
shell_label

-

"//py/bazel-python-shell:library"
kwargs other py_binary kwargs none

19.4 - al_py_checker

al_py_checker

load("@com_alwaldend_src//bzl/rules/py:al_py_checker.bzl", "al_py_checker")

al_py_checker(name, tool, args_bin, args_test, test_size, disable_fix, **kwargs)

Create -fix and -test targets for a python checker

PARAMETERS

Name Description Default Value
name Name prefix None
tool Tool label None
args_bin Args for the binary target None
args_test Args for the test None
test_size

-

"small"
disable_fix If set, do not create fix target False
kwargs Kwargs for both targets none

19.5 - al_py_checkers

al_py_checkers

load("@com_alwaldend_src//bzl/rules/py:al_py_checkers.bzl", "al_py_checkers")

al_py_checkers(srcs, isort_label, black_label, mypy_label, flake8_label, pyproject_label)

Generate -fix and -test targets for python checkers

PARAMETERS

Name Description Default Value
srcs list of source file labels none
isort_label

-

"//py:isort"
black_label

-

"//py:black"
mypy_label

-

"//py:mypy"
flake8_label

-

"//py:flake8"
pyproject_label

-

"//:pyproject"

19.6 - Bazel targets

NameInfo
al_compile_pip_requirements_combined
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_compile_pip_requirements_combined
ruleClassbzl_library
visibility
  • //visibility:public
al_compile_pip_requirements_combined.stardoc
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_compile_pip_requirements_combined.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/py:al_compile_pip_requirements_combined.stardoc.md
visibility
  • //visibility:private
al_compile_pip_requirements_combined.stardoc_raw
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_compile_pip_requirements_combined.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/py:al_compile_pip_requirements_combined.stardoc_raw.md
visibility
  • //visibility:private
al_compile_pip_requirements_combined.stardoc_raw.extract
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_compile_pip_requirements_combined.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/py:al_compile_pip_requirements_combined.stardoc_raw.extract.binaryproto
  • //bzl/rules/py:al_compile_pip_requirements_combined.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_genrule_with_wheels
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_genrule_with_wheels
ruleClassbzl_library
visibility
  • //visibility:public
al_genrule_with_wheels.stardoc
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_genrule_with_wheels.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/py:al_genrule_with_wheels.stardoc.md
visibility
  • //visibility:private
al_genrule_with_wheels.stardoc_raw
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_genrule_with_wheels.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/py:al_genrule_with_wheels.stardoc_raw.md
visibility
  • //visibility:private
al_genrule_with_wheels.stardoc_raw.extract
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_genrule_with_wheels.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/py:al_genrule_with_wheels.stardoc_raw.extract.binaryproto
  • //bzl/rules/py:al_genrule_with_wheels.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_py_binary_shell
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_binary_shell
ruleClassbzl_library
visibility
  • //visibility:public
al_py_binary_shell.stardoc
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_binary_shell.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/py:al_py_binary_shell.stardoc.md
visibility
  • //visibility:private
al_py_binary_shell.stardoc_raw
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_binary_shell.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/py:al_py_binary_shell.stardoc_raw.md
visibility
  • //visibility:private
al_py_binary_shell.stardoc_raw.extract
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_binary_shell.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/py:al_py_binary_shell.stardoc_raw.extract.binaryproto
  • //bzl/rules/py:al_py_binary_shell.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_py_checker
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checker
ruleClassbzl_library
visibility
  • //visibility:public
al_py_checker.stardoc
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checker.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/py:al_py_checker.stardoc.md
visibility
  • //visibility:private
al_py_checker.stardoc_raw
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checker.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/py:al_py_checker.stardoc_raw.md
visibility
  • //visibility:private
al_py_checker.stardoc_raw.extract
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checker.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/py:al_py_checker.stardoc_raw.extract.binaryproto
  • //bzl/rules/py:al_py_checker.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_py_checkers
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checkers
ruleClassbzl_library
visibility
  • //visibility:public
al_py_checkers.stardoc
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checkers.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/py:al_py_checkers.stardoc.md
visibility
  • //visibility:private
al_py_checkers.stardoc_raw
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checkers.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/py:al_py_checkers.stardoc_raw.md
visibility
  • //visibility:private
al_py_checkers.stardoc_raw.extract
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:al_py_checkers.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/py:al_py_checkers.stardoc_raw.extract.binaryproto
  • //bzl/rules/py:al_py_checkers.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/py/BUILD.bazel:6:17
name//bzl/rules/py:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/py/BUILD.bazel:6:17
name//bzl/rules/py:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/py:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/py/BUILD.bazel:6:17
name//bzl/rules/py:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/py:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/py/BUILD.bazel:6:17
name//bzl/rules/py:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/py/BUILD.bazel:6:17
name//bzl/rules/py:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/py:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/py/BUILD.bazel:11:19
name//bzl/rules/py:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/py/BUILD.bazel:32:10
name//bzl/rules/py:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/py/BUILD.bazel:32:10
name//bzl/rules/py:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/py/BUILD.bazel:32:10
name//bzl/rules/py:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

19.7 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move py rules to bzl/rules/py (dcb491)

20 - Qt

Qt rules

Qt setup

  • Install qt: aqt install-qt -O /opt/qt linux desktop 6.9.0
  • Register toolchain: register_toolchains("//bazel/qt:preinstalled-qt-toolchain")

20.1 - al_qt_local_toolchain

al_qt_local_toolchain

load("@com_alwaldend_src//bzl/rules/qt:al_qt_local_toolchain.bzl", "al_qt_local_toolchain")

al_qt_local_toolchain(name, dir, platform, version)

Local qt toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
dir Root qt directory String required
platform Qt platform String required
version Qt version String required

20.2 - al_qt_resolved_toolchain

al_qt_resolved_toolchain

load("@com_alwaldend_src//bzl/rules/qt:al_qt_resolved_toolchain.bzl", "al_qt_resolved_toolchain")

al_qt_resolved_toolchain(name)

Resolved qt toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required

20.3 - Bazel targets

NameInfo
_aqt_gen
locationbzl/rules/qt/BUILD.bazel:52:25
name//bzl/rules/qt:_aqt_gen
ruleClasspy_console_script_gen
ruleOutput
  • //bzl/rules/qt:rules_python_entry_point_aqt.py
visibility
  • //visibility:private
al_qt_local_toolchain
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_local_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_qt_local_toolchain.stardoc
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_local_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/qt:al_qt_local_toolchain.stardoc.md
visibility
  • //visibility:private
al_qt_local_toolchain.stardoc_raw
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_local_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/qt:al_qt_local_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_qt_local_toolchain.stardoc_raw.extract
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_local_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/qt:al_qt_local_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/qt:al_qt_local_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_qt_resolved_toolchain
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_resolved_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_qt_resolved_toolchain.stardoc
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_resolved_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/qt:al_qt_resolved_toolchain.stardoc.md
visibility
  • //visibility:private
al_qt_resolved_toolchain.stardoc_raw
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_resolved_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/qt:al_qt_resolved_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_qt_resolved_toolchain.stardoc_raw.extract
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:al_qt_resolved_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/qt:al_qt_resolved_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/qt:al_qt_resolved_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
aqt
locationbzl/rules/qt/BUILD.bazel:52:25
name//bzl/rules/qt:aqt
ruleClasspy_binary
visibility
  • //visibility:private
changelog
locationbzl/rules/qt/BUILD.bazel:10:17
name//bzl/rules/qt:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/qt/BUILD.bazel:10:17
name//bzl/rules/qt:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/qt:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/qt/BUILD.bazel:10:17
name//bzl/rules/qt:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/qt:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/qt/BUILD.bazel:10:17
name//bzl/rules/qt:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/qt/BUILD.bazel:10:17
name//bzl/rules/qt:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/qt:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/qt/BUILD.bazel:15:19
name//bzl/rules/qt:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
qt-install
locationbzl/rules/qt/BUILD.bazel:57:8
name//bzl/rules/qt:qt-install
ruleClassgenrule
ruleOutput
  • //bzl/rules/qt:qt-install.sh
visibility
  • //visibility:private
readme
locationbzl/rules/qt/BUILD.bazel:78:10
name//bzl/rules/qt:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/qt/BUILD.bazel:78:10
name//bzl/rules/qt:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/qt/BUILD.bazel:78:10
name//bzl/rules/qt:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
requirements
locationbzl/rules/qt/BUILD.bazel:72:25
name//bzl/rules/qt:requirements
ruleClassfilegroup
visibility
  • //visibility:private
requirements.test
locationbzl/rules/qt/BUILD.bazel:72:25
name//bzl/rules/qt:requirements.test
ruleClasspy_test
visibility
  • //visibility:private
requirements.update
locationbzl/rules/qt/BUILD.bazel:72:25
name//bzl/rules/qt:requirements.update
ruleClasspy_binary
visibility
  • //visibility:private
requirements_test
locationbzl/rules/qt/BUILD.bazel:72:25
name//bzl/rules/qt:requirements_test
ruleClassalias
visibility
  • //visibility:private
toolchain_local_linux_gcc_64
locationbzl/rules/qt/BUILD.bazel:33:10
name//bzl/rules/qt:toolchain_local_linux_gcc_64
ruleClasstoolchain
visibility
  • //visibility:public
toolchain_local_linux_gcc_64_impl
locationbzl/rules/qt/BUILD.bazel:40:22
name//bzl/rules/qt:toolchain_local_linux_gcc_64_impl
ruleClassal_qt_local_toolchain
visibility
  • //visibility:private
toolchain_resolved
locationbzl/rules/qt/BUILD.bazel:47:25
name//bzl/rules/qt:toolchain_resolved
ruleClassal_qt_resolved_toolchain
visibility
  • //visibility:public
toolchain_type
locationbzl/rules/qt/BUILD.bazel:28:15
name//bzl/rules/qt:toolchain_type
ruleClasstoolchain_type
visibility
  • //visibility:public

20.4 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move qt rules to bzl/rules/qt (ed00dc)

21 - Readme

Readme rules

21.1 - al_readme

al_readme

load("@com_alwaldend_src//bzl/rules/readme:al_readme.bzl", "al_readme")

al_readme(name, srcs, renames, subpackages, **kwargs)

Create readme targets

Targets:

  • ${name}: al_md_data target
  • ${name}-children: pkg_tar containing ${name}-children from subpackages

PARAMETERS

Name Description Default Value
name target name none
srcs

-

[":README.md"]
renames

-

{"README.md": "_index.md"}
subpackages override list of subpackages []
kwargs al_md_data kwargs none

21.2 - Bazel targets

NameInfo
al_readme
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:al_readme
ruleClassbzl_library
visibility
  • //visibility:public
al_readme.stardoc
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:al_readme.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/readme:al_readme.stardoc.md
visibility
  • //visibility:private
al_readme.stardoc_raw
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:al_readme.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/readme:al_readme.stardoc_raw.md
visibility
  • //visibility:private
al_readme.stardoc_raw.extract
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:al_readme.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/readme:al_readme.stardoc_raw.extract.binaryproto
  • //bzl/rules/readme:al_readme.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/readme/BUILD.bazel:6:17
name//bzl/rules/readme:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/readme/BUILD.bazel:6:17
name//bzl/rules/readme:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/readme:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/readme/BUILD.bazel:6:17
name//bzl/rules/readme:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/readme:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/readme/BUILD.bazel:6:17
name//bzl/rules/readme:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/readme/BUILD.bazel:6:17
name//bzl/rules/readme:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/readme:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/readme/BUILD.bazel:11:19
name//bzl/rules/readme:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/readme/BUILD.bazel:23:10
name//bzl/rules/readme:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/readme/BUILD.bazel:23:10
name//bzl/rules/readme:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/readme/BUILD.bazel:23:10
name//bzl/rules/readme:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

21.3 - Changelog

  • Remove pkg_tar from bzl, readme, drawio (6230ed)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)

22 - Repo map

Extension to download several versions of a repository depending on a platform

22.1 - al_repo_map

al_repo_map

al_repo_map = use_extension("@com_alwaldend_src//bzl/rules/repo_map:al_repo_map.bzl", "al_repo_map")
al_repo_map.download(name, build_file_content, build_file_native_binary, download_type, executable,
                     repos, strip_prefix)

Extension to create several repos from a map

TAG CLASSES

download

Attributes

Name Description Type Mandatory Default
name Name Name required
build_file_content Build file content String optional ""
build_file_native_binary Args for a native binary build file Dictionary: String -> String optional {}
download_type Download type String optional "http_archive"
executable Field executable for http_file Boolean optional False
repos Map of repos Dictionary: String -> List of strings required
strip_prefix Strip prefix String optional ""

22.2 - Bazel targets

NameInfo
al_repo_map
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map
ruleClassbzl_library
visibility
  • //visibility:public
al_repo_map.stardoc
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/repo_map:al_repo_map.stardoc.md
visibility
  • //visibility:private
al_repo_map.stardoc_raw
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/repo_map:al_repo_map.stardoc_raw.md
visibility
  • //visibility:private
al_repo_map.stardoc_raw.extract
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/repo_map:al_repo_map.stardoc_raw.extract.binaryproto
  • //bzl/rules/repo_map:al_repo_map.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/repo_map:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/repo_map:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/repo_map:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/repo_map/BUILD.bazel:23:10
name//bzl/rules/repo_map:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/repo_map/BUILD.bazel:23:10
name//bzl/rules/repo_map:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/repo_map/BUILD.bazel:23:10
name//bzl/rules/repo_map:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

22.3 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Add al_go_platform rules, add native_binary support to al_repo_map (8ca07d)
  • Add external ansible collections, rename some deps (99b3c7)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move transitive_sources rules to bzl/rules/transitive_sources (a4223b)
  • Move hugo rules to bzl/rules/hugo, move go rules to /bzl/rules/go (cb079f)
  • Move al_repo_map to bzl/rules (a77a38)

23 - Resolved toolchain

Helper rule to create a resolved toolchain

23.1 - al_resolved_toolchain

al_resolved_toolchain

load("@com_alwaldend_src//bzl/rules/resolved_toolchain:al_resolved_toolchain.bzl", "al_resolved_toolchain")

al_resolved_toolchain(toolchain_label, **kwargs)

Create a resolved toolchain

PARAMETERS

Name Description Default Value
toolchain_label

-

none
kwargs rule kwargs none

RETURNS

Resolved toolchain rule

23.2 - Bazel targets

NameInfo
al_resolved_toolchain
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:al_resolved_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_resolved_toolchain.stardoc
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc.md
visibility
  • //visibility:private
al_resolved_toolchain.stardoc_raw
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_resolved_toolchain.stardoc_raw.extract
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/resolved_toolchain:al_resolved_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/resolved_toolchain/BUILD.bazel:6:17
name//bzl/rules/resolved_toolchain:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/resolved_toolchain/BUILD.bazel:6:17
name//bzl/rules/resolved_toolchain:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/resolved_toolchain:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/resolved_toolchain/BUILD.bazel:6:17
name//bzl/rules/resolved_toolchain:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/resolved_toolchain:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/resolved_toolchain/BUILD.bazel:6:17
name//bzl/rules/resolved_toolchain:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/resolved_toolchain/BUILD.bazel:6:17
name//bzl/rules/resolved_toolchain:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/resolved_toolchain:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/resolved_toolchain/BUILD.bazel:11:19
name//bzl/rules/resolved_toolchain:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/resolved_toolchain/BUILD.bazel:19:10
name//bzl/rules/resolved_toolchain:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/resolved_toolchain/BUILD.bazel:19:10
name//bzl/rules/resolved_toolchain:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/resolved_toolchain/BUILD.bazel:19:10
name//bzl/rules/resolved_toolchain:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

23.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move transitive_sources rules to bzl/rules/transitive_sources (a4223b)
  • Move git rules to //bzl/rules/git, move resolved_toolchain to bzl/rules (51b133)

24 - Run tool

Run tool rules

24.1 - al_run_tool

al_run_tool

load("@com_alwaldend_src//bzl/rules/run_tool:al_run_tool.bzl", "al_run_tool")

al_run_tool(name, tool, executable, test, **kwargs)

Generate either native_test, native_binary, or run_binary target

PARAMETERS

Name Description Default Value
name Target name (required) none
tool Tool label to run (required) none
executable If True, generate native_binary False
test If True, generate native_test False
kwargs kwargs for rules none

24.2 - Bazel targets

NameInfo
al_run_tool
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:al_run_tool
ruleClassbzl_library
visibility
  • //visibility:public
al_run_tool.stardoc
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:al_run_tool.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/run_tool:al_run_tool.stardoc.md
visibility
  • //visibility:private
al_run_tool.stardoc_raw
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:al_run_tool.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/run_tool:al_run_tool.stardoc_raw.md
visibility
  • //visibility:private
al_run_tool.stardoc_raw.extract
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:al_run_tool.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/run_tool:al_run_tool.stardoc_raw.extract.binaryproto
  • //bzl/rules/run_tool:al_run_tool.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/run_tool/BUILD.bazel:6:17
name//bzl/rules/run_tool:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/run_tool/BUILD.bazel:6:17
name//bzl/rules/run_tool:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/run_tool:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/run_tool/BUILD.bazel:6:17
name//bzl/rules/run_tool:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/run_tool:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/run_tool/BUILD.bazel:6:17
name//bzl/rules/run_tool:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/run_tool/BUILD.bazel:6:17
name//bzl/rules/run_tool:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/run_tool:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/run_tool/BUILD.bazel:11:19
name//bzl/rules/run_tool:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/run_tool/BUILD.bazel:23:10
name//bzl/rules/run_tool:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/run_tool/BUILD.bazel:23:10
name//bzl/rules/run_tool:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/run_tool/BUILD.bazel:23:10
name//bzl/rules/run_tool:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

24.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move lua rules to bzl/rules/lua, move run_tool rules to bzl/rules/run_tool (7b7883)

25 - Sh

Shell rules

25.1 - al_sh_library

al_sh_library

load("@com_alwaldend_src//bzl/rules/sh:al_sh_library.bzl", "al_sh_library")

al_sh_library(name, shfmt_src, editorconfig_src, shellcheck_src, run_args_src, visibility,
              **common_kwargs)

Create targets for a shell library

Targets:

  • ${name}-shfmt-fix: executable to run shfmt
  • ${name}-shfmt-test: test whether the script is formatted
  • ${name}-shellcheck-test: shellcheck test

PARAMETERS

Name Description Default Value
name target name none
shfmt_src

-

"@cc_mvdan_sh_v3//cmd/shfmt:shfmt"
editorconfig_src

-

"//:editorconfig"
shellcheck_src

-

"@com_github_koalaman_shellcheck_linux_x86_64//:bin"
run_args_src

-

"//sh/scripts:run-args.lib"
visibility

-

["//visibility:public"]
common_kwargs kwargs for both targets none

25.2 - al_write_script

al_write_script

load("@com_alwaldend_src//bzl/rules/sh:al_write_script.bzl", "al_write_script")

al_write_script(name, out, content, make_vars, set_flags, shebang)

Write a script and make it executable

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
out Output file Label; nonconfigurable required
content Script content String required
make_vars Additional make vars Dictionary: String -> String optional {}
set_flags Flags to pass to set List of strings optional ["-eu"]
shebang Sheband to use String optional "#!/usr/bin/env sh"

25.3 - Bazel targets

NameInfo
al_sh_library
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_sh_library
ruleClassbzl_library
visibility
  • //visibility:public
al_sh_library.stardoc
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_sh_library.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/sh:al_sh_library.stardoc.md
visibility
  • //visibility:private
al_sh_library.stardoc_raw
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_sh_library.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/sh:al_sh_library.stardoc_raw.md
visibility
  • //visibility:private
al_sh_library.stardoc_raw.extract
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_sh_library.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/sh:al_sh_library.stardoc_raw.extract.binaryproto
  • //bzl/rules/sh:al_sh_library.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_write_script
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_write_script
ruleClassbzl_library
visibility
  • //visibility:public
al_write_script.stardoc
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_write_script.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/sh:al_write_script.stardoc.md
visibility
  • //visibility:private
al_write_script.stardoc_raw
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_write_script.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/sh:al_write_script.stardoc_raw.md
visibility
  • //visibility:private
al_write_script.stardoc_raw.extract
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:al_write_script.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/sh:al_write_script.stardoc_raw.extract.binaryproto
  • //bzl/rules/sh:al_write_script.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/sh/BUILD.bazel:6:17
name//bzl/rules/sh:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/sh/BUILD.bazel:6:17
name//bzl/rules/sh:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/sh:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/sh/BUILD.bazel:6:17
name//bzl/rules/sh:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/sh:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/sh/BUILD.bazel:6:17
name//bzl/rules/sh:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/sh/BUILD.bazel:6:17
name//bzl/rules/sh:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/sh:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/sh/BUILD.bazel:11:19
name//bzl/rules/sh:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/sh/BUILD.bazel:22:10
name//bzl/rules/sh:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/sh/BUILD.bazel:22:10
name//bzl/rules/sh:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/sh/BUILD.bazel:22:10
name//bzl/rules/sh:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

25.4 - Changelog

  • Add external ansible collections, rename some deps (99b3c7)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move ansible and leetcode rules to bzl/rules (0d9b39)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move sh rules to bzl/rules/sh (8e6a6a)

26 - Shellcheck

Shellcheck rules

26.1 - al_shellcheck_toolchain

al_shellcheck_toolchain

load("@com_alwaldend_src//bzl/rules/shellcheck:al_shellcheck_toolchain.bzl", "al_shellcheck_toolchain")

al_shellcheck_toolchain(name, shellcheck)

Shellcheck toolchain

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
shellcheck Shellcheck binary Label required

26.2 - Bazel targets

NameInfo
al_shellcheck_toolchain
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:al_shellcheck_toolchain
ruleClassbzl_library
visibility
  • //visibility:public
al_shellcheck_toolchain.stardoc
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc.md
visibility
  • //visibility:private
al_shellcheck_toolchain.stardoc_raw
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc_raw.md
visibility
  • //visibility:private
al_shellcheck_toolchain.stardoc_raw.extract
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc_raw.extract.binaryproto
  • //bzl/rules/shellcheck:al_shellcheck_toolchain.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/shellcheck/BUILD.bazel:7:17
name//bzl/rules/shellcheck:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/shellcheck/BUILD.bazel:7:17
name//bzl/rules/shellcheck:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/shellcheck:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/shellcheck/BUILD.bazel:7:17
name//bzl/rules/shellcheck:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/shellcheck:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/shellcheck/BUILD.bazel:7:17
name//bzl/rules/shellcheck:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/shellcheck/BUILD.bazel:7:17
name//bzl/rules/shellcheck:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/shellcheck:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/shellcheck/BUILD.bazel:12:19
name//bzl/rules/shellcheck:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/shellcheck/BUILD.bazel:41:10
name//bzl/rules/shellcheck:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/shellcheck/BUILD.bazel:41:10
name//bzl/rules/shellcheck:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/shellcheck/BUILD.bazel:41:10
name//bzl/rules/shellcheck:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public
toolchain_remote_linux_x86_64
locationbzl/rules/shellcheck/BUILD.bazel:25:10
name//bzl/rules/shellcheck:toolchain_remote_linux_x86_64
ruleClasstoolchain
visibility
  • //visibility:public
toolchain_remote_linux_x86_64_impl
locationbzl/rules/shellcheck/BUILD.bazel:32:24
name//bzl/rules/shellcheck:toolchain_remote_linux_x86_64_impl
ruleClassal_shellcheck_toolchain
visibility
  • //visibility:private
toolchain_type
locationbzl/rules/shellcheck/BUILD.bazel:20:15
name//bzl/rules/shellcheck:toolchain_type
ruleClasstoolchain_type
visibility
  • //visibility:public

26.3 - Changelog

  • Add external ansible collections, rename some deps (99b3c7)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move shellcheck rules to bzl/rules/shellcheck (3b7a56)

27 - Template files

Rules to template files

27.1 - al_template_files

al_template_files

load("@com_alwaldend_src//bzl/rules/template_files:al_template_files.bzl", "al_template_files")

al_template_files(name, srcs, data, outs, templater)

Load data files, then template the template and write the output

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Template files List of labels required
data Data files List of labels required
outs Output files List of labels; nonconfigurable required
templater Templater to use Label optional "@com_alwaldend_src//go/template-files"

27.2 - Bazel targets

NameInfo
al_template_files
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files
ruleClassbzl_library
visibility
  • //visibility:public
al_template_files.stardoc
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/template_files:al_template_files.stardoc.md
visibility
  • //visibility:private
al_template_files.stardoc_raw
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/template_files:al_template_files.stardoc_raw.md
visibility
  • //visibility:private
al_template_files.stardoc_raw.extract
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/template_files:al_template_files.stardoc_raw.extract.binaryproto
  • //bzl/rules/template_files:al_template_files.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/template_files:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/template_files:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/template_files:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/template_files/BUILD.bazel:19:10
name//bzl/rules/template_files:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/template_files/BUILD.bazel:19:10
name//bzl/rules/template_files:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/template_files/BUILD.bazel:19:10
name//bzl/rules/template_files:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

27.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move template_files rules to bzl/rules/template_files (72daa0)

28 - Toml

Toml rules

28.1 - al_toml_data

al_toml_data

load("@com_alwaldend_src//bzl/rules/toml:al_toml_data.bzl", "al_toml_data")

al_toml_data(name, deps, srcs, tomlv)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
deps Toml data targets List of labels optional []
srcs Toml files List of labels optional []
tomlv Tomlv target to use for validation Label optional "@com_alwaldend_src//tools:tomlv"

28.2 - al_toml_info

AlTomlInfo

load("@com_alwaldend_src//bzl/rules/toml:al_toml_info.bzl", "AlTomlInfo")

AlTomlInfo(srcs, deps)

Provide toml data info

FIELDS

Name Description
srcs Toml files
deps Toml data targets

28.3 - al_toml_validate

al_toml_validate

load("@com_alwaldend_src//bzl/rules/toml:al_toml_validate.bzl", "al_toml_validate")

al_toml_validate()

Aspect adding linters for toml files

ASPECT ATTRIBUTES

Name Type
deps String

ATTRIBUTES

28.4 - Bazel targets

NameInfo
al_toml_data
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_data
ruleClassbzl_library
visibility
  • //visibility:public
al_toml_data.stardoc
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_data.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/toml:al_toml_data.stardoc.md
visibility
  • //visibility:private
al_toml_data.stardoc_raw
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_data.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/toml:al_toml_data.stardoc_raw.md
visibility
  • //visibility:private
al_toml_data.stardoc_raw.extract
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_data.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/toml:al_toml_data.stardoc_raw.extract.binaryproto
  • //bzl/rules/toml:al_toml_data.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_toml_info
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_info
ruleClassbzl_library
visibility
  • //visibility:public
al_toml_info.stardoc
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_info.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/toml:al_toml_info.stardoc.md
visibility
  • //visibility:private
al_toml_info.stardoc_raw
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_info.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/toml:al_toml_info.stardoc_raw.md
visibility
  • //visibility:private
al_toml_info.stardoc_raw.extract
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_info.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/toml:al_toml_info.stardoc_raw.extract.binaryproto
  • //bzl/rules/toml:al_toml_info.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_toml_validate
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_validate
ruleClassbzl_library
visibility
  • //visibility:public
al_toml_validate.stardoc
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_validate.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/toml:al_toml_validate.stardoc.md
visibility
  • //visibility:private
al_toml_validate.stardoc_raw
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_validate.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/toml:al_toml_validate.stardoc_raw.md
visibility
  • //visibility:private
al_toml_validate.stardoc_raw.extract
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:al_toml_validate.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/toml:al_toml_validate.stardoc_raw.extract.binaryproto
  • //bzl/rules/toml:al_toml_validate.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/toml/BUILD.bazel:6:17
name//bzl/rules/toml:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/toml/BUILD.bazel:6:17
name//bzl/rules/toml:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/toml:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/toml/BUILD.bazel:6:17
name//bzl/rules/toml:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/toml:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/toml/BUILD.bazel:6:17
name//bzl/rules/toml:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/toml/BUILD.bazel:6:17
name//bzl/rules/toml:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/toml:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/toml/BUILD.bazel:11:19
name//bzl/rules/toml:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/toml/BUILD.bazel:25:10
name//bzl/rules/toml:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/toml/BUILD.bazel:25:10
name//bzl/rules/toml:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/toml/BUILD.bazel:25:10
name//bzl/rules/toml:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

28.5 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move toml rules to bzl/rules/toml (0b824f)

29 - Transitive sources

Provider and a rule to extract transitive sources

29.1 - al_transitive_sources

AlTransitiveSources

load("@com_alwaldend_src//bzl/rules/transitive_sources:al_transitive_sources.bzl", "AlTransitiveSources")

AlTransitiveSources(transitive_sources)

Provide transitive sources

FIELDS

Name Description
transitive_sources -

al_transitive_sources

load("@com_alwaldend_src//bzl/rules/transitive_sources:al_transitive_sources.bzl", "al_transitive_sources")

al_transitive_sources(srcs, deps)

Obtain the source files for a target and its transitive dependencies.

PARAMETERS

Name Description Default Value
srcs a list of source files none
deps a list of targets that are direct dependencies none

RETURNS

a collection of the transitive sources

29.2 - Bazel targets

NameInfo
al_transitive_sources
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:al_transitive_sources
ruleClassbzl_library
visibility
  • //visibility:public
al_transitive_sources.stardoc
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:al_transitive_sources.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/transitive_sources:al_transitive_sources.stardoc.md
visibility
  • //visibility:private
al_transitive_sources.stardoc_raw
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:al_transitive_sources.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/transitive_sources:al_transitive_sources.stardoc_raw.md
visibility
  • //visibility:private
al_transitive_sources.stardoc_raw.extract
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:al_transitive_sources.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/transitive_sources:al_transitive_sources.stardoc_raw.extract.binaryproto
  • //bzl/rules/transitive_sources:al_transitive_sources.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/transitive_sources/BUILD.bazel:6:17
name//bzl/rules/transitive_sources:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/transitive_sources/BUILD.bazel:6:17
name//bzl/rules/transitive_sources:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/transitive_sources:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/transitive_sources/BUILD.bazel:6:17
name//bzl/rules/transitive_sources:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/transitive_sources:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/transitive_sources/BUILD.bazel:6:17
name//bzl/rules/transitive_sources:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/transitive_sources/BUILD.bazel:6:17
name//bzl/rules/transitive_sources:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/transitive_sources:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/transitive_sources/BUILD.bazel:11:19
name//bzl/rules/transitive_sources:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/transitive_sources/BUILD.bazel:19:10
name//bzl/rules/transitive_sources:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/transitive_sources/BUILD.bazel:19:10
name//bzl/rules/transitive_sources:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/transitive_sources/BUILD.bazel:19:10
name//bzl/rules/transitive_sources:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

29.3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move transitive_sources rules to bzl/rules/transitive_sources (a4223b)

30 - Txt

Text rules

30.1 - al_combine_files

al_combine_files

load("@com_alwaldend_src//bzl/rules/txt:al_combine_files.bzl", "al_combine_files")

al_combine_files(name, srcs, **kwargs)

Create a genrule combining several files into one

PARAMETERS

Name Description Default Value
name genrule target none
srcs list of labels to combine none
kwargs other genrule kwargs none

30.2 - al_txt_data

al_txt_data

load("@com_alwaldend_src//bzl/rules/txt:al_txt_data.bzl", "al_txt_data")

al_txt_data(name, srcs, **kwargs)

Text data

PARAMETERS

Name Description Default Value
name target name none
srcs sources none
kwargs filegroup kwargs none

30.3 - Bazel targets

NameInfo
al_combine_files
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_combine_files
ruleClassbzl_library
visibility
  • //visibility:public
al_combine_files.stardoc
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_combine_files.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/txt:al_combine_files.stardoc.md
visibility
  • //visibility:private
al_combine_files.stardoc_raw
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_combine_files.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/txt:al_combine_files.stardoc_raw.md
visibility
  • //visibility:private
al_combine_files.stardoc_raw.extract
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_combine_files.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/txt:al_combine_files.stardoc_raw.extract.binaryproto
  • //bzl/rules/txt:al_combine_files.stardoc_raw.extract.textproto
visibility
  • //visibility:private
al_txt_data
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_txt_data
ruleClassbzl_library
visibility
  • //visibility:public
al_txt_data.stardoc
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_txt_data.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/txt:al_txt_data.stardoc.md
visibility
  • //visibility:private
al_txt_data.stardoc_raw
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_txt_data.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/txt:al_txt_data.stardoc_raw.md
visibility
  • //visibility:private
al_txt_data.stardoc_raw.extract
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:al_txt_data.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/txt:al_txt_data.stardoc_raw.extract.binaryproto
  • //bzl/rules/txt:al_txt_data.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/txt/BUILD.bazel:6:17
name//bzl/rules/txt:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/txt/BUILD.bazel:6:17
name//bzl/rules/txt:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/txt:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/txt/BUILD.bazel:6:17
name//bzl/rules/txt:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/txt:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/txt/BUILD.bazel:6:17
name//bzl/rules/txt:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/txt/BUILD.bazel:6:17
name//bzl/rules/txt:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/txt:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/txt/BUILD.bazel:11:19
name//bzl/rules/txt:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/txt/BUILD.bazel:20:10
name//bzl/rules/txt:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/txt/BUILD.bazel:20:10
name//bzl/rules/txt:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/txt/BUILD.bazel:20:10
name//bzl/rules/txt:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

30.4 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move txt rules to bzl/rules/txt (d35655)

31 - Vial

Vial rules

31.1 - al_vial_configs

al_vial_configs

load("@com_alwaldend_src//bzl/rules/vial:al_vial_configs.bzl", "al_vial_configs")

al_vial_configs(name, srcs, visibility, **kwargs)

Generate vial config targets

PARAMETERS

Name Description Default Value
name generated docs archive name none
srcs vial config none
visibility visibility none
kwargs kwargs for al_template_files none

31.2 - Bazel targets

NameInfo
al_vial_configs
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:al_vial_configs
ruleClassbzl_library
visibility
  • //visibility:public
al_vial_configs.stardoc
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:al_vial_configs.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/vial:al_vial_configs.stardoc.md
visibility
  • //visibility:private
al_vial_configs.stardoc_raw
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:al_vial_configs.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/vial:al_vial_configs.stardoc_raw.md
visibility
  • //visibility:private
al_vial_configs.stardoc_raw.extract
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:al_vial_configs.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/vial:al_vial_configs.stardoc_raw.extract.binaryproto
  • //bzl/rules/vial:al_vial_configs.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/vial/BUILD.bazel:6:17
name//bzl/rules/vial:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/vial/BUILD.bazel:6:17
name//bzl/rules/vial:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/vial:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/vial/BUILD.bazel:6:17
name//bzl/rules/vial:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/vial:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/vial/BUILD.bazel:6:17
name//bzl/rules/vial:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/vial/BUILD.bazel:6:17
name//bzl/rules/vial:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/vial:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/vial/BUILD.bazel:11:19
name//bzl/rules/vial:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/vial/BUILD.bazel:24:10
name//bzl/rules/vial:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/vial/BUILD.bazel:24:10
name//bzl/rules/vial:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/vial/BUILD.bazel:24:10
name//bzl/rules/vial:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

31.3 - Changelog

  • Add bzl/package_groups, remove pkg_tar from a couple of rules (116823)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move vial rules to bzl/rules/vial (266c83)