bazelbuild / bazelbuild/bazel

System-specific environment variables on Windows pollute remote cache

Open
#3,500 16 comments 0 reactions 0 assignees View on GitHub
help wanted P4 team-Remote-Exec type: bug
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the problem / feature request / question:

When building C++ rules on Windows with MSVC, system-specific environment variables are part of the inputs, i.e.
```
SET TEMP=C:\Users\\AppData\Local\Temp
SET TMP=C:\Users\\AppData\Local\Temp
SET PATH="...;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Bitvise SSH Client;..."
```
For remote caching, this prevents sharing outputs between different systems.

### Environment info
* Operating System: Windows 10

* Bazel version (output of `bazel info release`): release 0.5.4rc1

### Have you found anything relevant by searching the web?
https://groups.google.com/forum/#!topic/bazel-discuss/4GV8lJzfeGQ

Contributor guide

Open the contributing guide

Research direction

The issue mentions Windows 10, MSVC C++ rules, and remote caching but names no source file or test. Start by reproducing a remote-cache build with differing TEMP, TMP, and PATH values; done means system-specific environment values no longer prevent sharing valid outputs between systems.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, infrastructure, operating-systems
Issue type
Bug
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.