Skip to content
  • Jonathan Watson's avatar
    feat: allow custom metadata files · ea05186e
    Jonathan Watson authored and Matthew Clarkson's avatar Matthew Clarkson committed
    ```py
    download_file(
        name = "example",
        metadata = {
            "//:integrity.tmpl.bzl", ".integrity.bzl",
        },
    )
    ```
    
    Where `integrity.tmpl.bzl` is:
    
    ```py
    visibility("public")
    
    INTEGRITY = "{{integrity}}"
    ```
    
    Then `@example//:.integrity.bzl"` can be used in `load` statement to read the download integrity.
    ea05186e
Loading