feat: add runfiles helpers needed for rules_js (#3)

* feat: add runfiles helpers needed for rules_js

* chore: code review feedback
7 files changed
tree: 31652bffc70dbaafc33af54b9f2f419b55506b33
  1. .github/
  2. docs/
  3. lib/
  4. .bazelrc
  5. .bazelversion
  6. .gitignore
  7. .pre-commit-config.yaml
  8. .prettierignore
  9. BUILD.bazel
  10. CONTRIBUTING.md
  11. internal_deps.bzl
  12. README.md
  13. version.bzl
  14. WORKSPACE
README.md

Aspect's Bazel helpers library

This is code we would contribute 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.

Installation

Include this in your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_bazel_lib",
    url = "https://github.com/myorg/bazel_lib/releases/download/0.0.0/bazel_lib-0.0.0.tar.gz",
    sha256 = "",
)

note, in the above, replace the version and sha256 with the one indicated in the release notes for bazel_lib In the future, our release automation should take care of this.