Skip to content

Read front-matter to configure the build #34

@alexeagle

Description

@alexeagle

Rather than having to write a bunch of build rules to describe information about each file and its references, it would be neat to leverage some front-matter in yaml_library rules.

Notes:

  • We could generate BUILD files using Gazelle, the current standard. I can contribute the extension (written in Starlark, not Go)
  • Starting in Bazel 9, there is also a sneaky way to construct a dependency graph during execution phase by reading the yaml files to construct the yaml_library dependency tree
  • A yaml_library rule also gives a better way to hookup yamllint with rules_lint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions