bazelbuild / bazelbuild/bazel

remote/correctness: Bazel doesn't track system libraries.

Open
#4,558 23 comments 23 reactions 0 assignees View on GitHub
P2 team-Remote-Exec type: process
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

Bazel currently does not track tools outside a workspace. This can be a problem if, for example, an action uses a compiler from `/usr/bin/`. Then, two users with different
compilers installed will wrongly share cache hits because the outputs are different but they have the same action hash.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Bazel hashes actions and handles remote cache inputs when tools outside the workspace are used, especially compilers such as /usr/bin/. Reproduce the case with two different installed compilers; done means their differing outputs cannot incorrectly share the same remote cache hit.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.