These rules let you create a repository from a Github asset.
github_archive(path, version, asset, kwargs)
Repository rule to download and extract an archive from a github release.
This is a simple wrapper around http_archive,
that constructs an url form a project path, version and asset name.
load("@bzlparty_tools//rules:github.bzl", "github_archive")
github_archive(
name = "mylang",
path = "myname/mylang",
version = "0.1.0",
asset = "mylang.tar.gz",
)
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| path | Github project path (owner/project). | none |
| version | Version of the release. | none |
| asset | Name of the asset to download. | none |
| kwargs | All other args of http_archive |
none |
github_binary(path, version, asset, kwargs)
Repository rule to download binary from a github release.
This is a simple wrapper around http_binary,
that constructs an url form a project path, version and asset name.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| path | Github project path (owner/project). | none |
| version | Version of the release. | none |
| asset | Name of the asset to download. | none |
| kwargs | All other args of http_binary |
none |