You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a macOS host machine, and I'm using a remote execution service with Windows executors.
This works for normal actions (at least those that avoid Bash or are conscious to use Powershell), but it fails for genrule. genrule has attributes cmd_ps, cmd_sh, cmd_bat, cmd. Bazel selects either cmd_ps or cmd_bat if the host machine is Windows and falls back to cmd.
It should select the script based on the execution platform, not the host platform.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Below is a small example, as self-contained as I could get it. To reproduce, you'll need a remote execution service with Windows machines though, which I expect is rare.
Currently the host platform is used, which fails when using a Windows remote
executor from a non-Windows host.
Also change GenRuleWindowsConfiguredTargetTest to run on every host platform.
Fixesbazelbuild#18584.
tjgq
added a commit
to tjgq/bazel
that referenced
this issue
Jun 6, 2023
Currently the host platform is used, which fails when using a Windows remote
executor from a non-Windows host.
Also change GenRuleWindowsConfiguredTargetTest to run on every host platform.
Fixesbazelbuild#18584.
Description of the bug:
I have a macOS host machine, and I'm using a remote execution service with Windows executors.
This works for normal actions (at least those that avoid Bash or are conscious to use Powershell), but it fails for
genrule
.genrule
has attributescmd_ps
,cmd_sh
,cmd_bat
,cmd
. Bazel selects eithercmd_ps
orcmd_bat
if the host machine is Windows and falls back tocmd
.It should select the script based on the execution platform, not the host platform.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Below is a small example, as self-contained as I could get it. To reproduce, you'll need a remote execution service with Windows machines though, which I expect is rare.
Run with:
Error output:
Which operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?release 6.2.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.n/a
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
Not as far as I know
Have you found anything relevant by searching the web?
no
Any other information, logs, or outputs that you want to share?
Loosely related issues
The text was updated successfully, but these errors were encountered: