commit | 036d1fdcc24e0eeead46e38785789e968b974dc0 | [log] [tgz] |
---|---|---|
author | Alex Eagle <alex@aspect.dev> | Fri Mar 29 11:35:56 2024 -0700 |
committer | Alex Eagle <alex@aspect.dev> | Fri Mar 29 11:37:13 2024 -0700 |
tree | 025e1c51a326806080c6db713cb8f3c596198578 | |
parent | 4109b3cf936b8547a931421d078bd49196ea66c9 [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