bazelbuild / bazelbuild/bazel

"bazel info install_base" not working outside a workspace

Open
#14,001 3 comments 0 reactions 0 assignees View on GitHub
not stale P2 team-OSS type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 18h
Merged PRs (30d)
75

Description

### Description of the problem / feature request:

Running `bazel info install_base ` doesn't work outside workspaces. But some of parameters aren't workspace-specific, I think, like `install_base`, `release` and jvm info.

### Feature requests: what underlying problem are you trying to solve with this feature?

> get a hold of bazel binaries like `linux-sandbox`

### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

```sh
$ bazel info install_base
Extracting Bazel installation...
ERROR: The 'info' command is only supported from within a workspace (below a directory having a WORKSPACE file).
See documentation at https://docs.bazel.build/versions/master/build-ref.html#workspace
```

### What operating system are you running Bazel on?

> NixOS

### What's the output of `bazel info release`?

> release 4.2.1- (@non-git)

### If `bazel info release` returns "development version" or "(@non-git)", tell us how you built Bazel.

> NixOS nixpkgs

Contributor guide

Open the contributing guide

Research direction

Reproduce `bazel info install_base` outside a directory containing a WORKSPACE file, then trace the `bazel info` command entry point and compare it with the requested workspace-independent parameters. Done means `install_base`, `release`, and JVM information work outside a workspace while workspace-specific queries retain their existing requirements.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.