Skip to content

Bazel always errors with bad --client_env on Windows for HEAD Bazel #24448

@Wyverald

Description

@Wyverald

On HEAD and release-8.0.0rc3, we're seeing the following when running a just-built Bazel on Windows (full logs):

> bazel build src:bazel.exe
> mkdir output
> copy bazel-bin\src\bazel.exe output
> output\bazel info
ERROR: While parsing option --client_env==C:=C:\Users\wyv: Variable definitions must be in the form of a 'name=value' assignment

Note that --client_env is passed from the C++ client to the Java server, and is not specified by the user.

This is apparently because there's an (implicit?) environment variable called !C::

> env
!C:=C:\Users\wyv\github\bazel
!ExitCode=00000002
[...]

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)area-WindowsWindows-specific issues and feature requeststype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions