bazelbuild / bazelbuild/bazelisk
How to avoid bazel installation?
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
This may come counter to everything this repo stands for, but here it goes anyway...
I'm a developer for the [Spack](https://spack.io) package manager. I'm trying to build a package (tensorstore) which uses bazelisk. However, Spack has a couple constraints that make it difficult to use bazelisk:
1. We need to be able to build on air-gapped networks, so we can't download things during build-time
2. We need to use Spack's compiler wrappers, which require environment variables, which bazel purges
Spack has its own bazel recipe, which patches bazel to avoid unsetting these environment variables. However, tensorstore uses bazelisk which downloads and installs its own copy of bazel, so even if I add a dependency on bazel, it's skipped.
Is there a way to tell bazelisk not to do anything and just use a pre-installed bazel from the PATH? Or an env var I can set to tell it to do this? Or is it possible to tell bazel not to unset all env vars?
@tgamblin
Contributor guide
Research direction
Start by reviewing Bazelisk's launcher behavior around downloading Bazel and handling PATH and environment variables. The issue names no source files or tests; done would require a decided, documented way to use a pre-installed Bazel or preserve the required environment in air-gapped Spack builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100