aspect-build / aspect-build/aspect-cli

[Idea]: Bootstrap bazelisk

Open
#899 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
165
Forks
45
Avg merge
1d 47m
Merged PRs (30d)
35

Description

Today the `ctx.bazel` machinery expects that the user has a `bazel` on their `$PATH` somewhere. Ideally the Aspect CLI would do the right thing and mostly stand alone, which means provisioning a `bazelisk` transparently by default.

- Add a new `cache.axl` implementation transliterating the current `cache` crate
- Add a new `bazelisk.axl` implementation which consumes the current HTTP feature(s) and the `cache` package to provide a helper for downloading a `bazelisk` binary
- Extend the reference `config.axl` to use the `bazelisk.axl` and install a `bazel` binary into the config struct.
- Extend the `ctx.bazel` machinery to go through the config struct to get the path of the `bazel` nominal binary.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.