bazelbuild / bazelbuild/bazel

Bazel 6.X.X - runfiles output-directories does not respect workspace-name anymore

Open
#18,128 7 comments 0 reactions 1 assignee Claimed by @Wyverald View on GitHub
P2 team-Documentation team-ExternalDeps type: bug
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the bug:

Starting with Bazel 6, the output directory for runfiles does not use the worskpace-name for the sub-directory anymore.

From the [documentation](https://bazel.build/remote/output-directories):
>foo/bar/baz.runfiles/ <== The runfiles symlink farm for the //foo/bar:baz executable.
> MANIFEST
> \/

With Bazel 5.X.X:
foo/bar/baz.runfiles/\

With Bazel 6.X.X:
foo/bar/baz.runfiles/_main

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

_No response_

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

Linux

### What is the output of `bazel info release`?

release 6.1.0

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

_No response_

### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?

_No response_

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.