| commit | f4f588f4ea23e4f6379d4b142e00e318c42c0417 | [log] [tgz] |
|---|---|---|
| author | Alex Eagle <alex@aspect.dev> | Fri Mar 29 11:35:56 2024 -0700 |
| committer | GitHub <noreply@github.com> | Fri Mar 29 11:35:56 2024 -0700 |
| tree | 1b61b8ed71c2ba61aabb1f5b165a60445731fe47 | |
| parent | 7bfc21bc931a4fc88271d6e6bede5cdb6a01a48e [diff] |
Use statically-linked bsdtar on all platforms (#804) * [tar] Switch to statically linked binaries * chore: don't use bsdtar for extract yet * chore: add dzbarsky integrity hashes * Upgrade to 3.7.2.bcr.2 (#806) * chore: replace URLs with aspect-build fork --------- Co-authored-by: David Zbarsky <dzbarsky@gmail.com>
Base Starlark libraries and basic Bazel rules which are useful for constructing rulesets and BUILD files.
This module depends on bazel-skylib. In theory all these utilities could be upstreamed to bazel-skylib, but the declared scope of that project is narrow and it‘s very difficult to get anyone’s attention to review PRs there.
bazel-lib is just a part of what Aspect provides:
Installation instructions are included on each release: https://github.com/aspect-build/bazel-lib/releases
To use a commit rather than a release, you can point at any SHA of the repo.
For example to use commit abc123:
url = "https://github.com/aspect-build/bazel-lib/releases/download/v0.1.0/bazel-lib-v0.1.0.tar.gz" with a GitHub-provided source archive like url = "https://github.com/aspect-build/bazel-lib/archive/abc123.tar.gz"strip_prefix = "bazel-lib-0.1.0" with strip_prefix = "bazel-lib-abc123"sha256. The easiest way to do this is to comment out the line, then Bazel will print a message with the correct value.Note that GitHub source archives don't have a strong guarantee on the sha256 stability, see https://github.blog/2023-02-21-update-on-the-future-stability-of-source-code-archives-and-hashes