Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--invocation_policy gets set to inappropriate values on Windows #4601

Closed
sgreenstein opened this issue Feb 7, 2018 · 1 comment
Closed
Labels
area-Windows Windows-specific issues and feature requests P2 We'll consider working on this in future. (Assignee optional) platform: windows team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug

Comments

@sgreenstein
Copy link
Contributor

Description of the problem / feature request:

Passing --invocation_policy on Windows results in the flag being set to random values

Feature requests: what underlying problem are you trying to solve with this feature?

I'm trying to pass --invocation_policy as in this question: https://stackoverflow.com/questions/48652798/how-do-i-unset-flags-set-in-bazelrc/

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

In a Windows command prompt in any directory, run bazel --invocation_policy=. It will print things like Malformed value of --invocation_policy: ystem32\cmd.exe

What operating system are you running Bazel on?

Windows 10

What's the output of bazel info release?

0.10.0

Have you found anything relevant by searching the web?

No

@vladmos vladmos added type: bug platform: windows P2 We'll consider working on this in future. (Assignee optional) labels Feb 11, 2018
@aiuto aiuto added area-Windows Windows-specific issues and feature requests and removed category: misc > misc labels Dec 10, 2018
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
@meteorcloudy
Copy link
Member

I tested on Windows with Bazel 4.2.2, this doesn't seem to be a problem anymore.

# bazel --invocation_policy
[FATAL 13:46:06.715 src/main/cpp/blaze.cc:1293] Startup option '--invocation_policy' expects a value.
Usage: '--invocation_policy=somevalue' or '--invocation_policy somevalue'.
  For more info, run 'bazel help startup_options'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windows Windows-specific issues and feature requests P2 We'll consider working on this in future. (Assignee optional) platform: windows team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug
Projects
None yet
Development

No branches or pull requests

6 participants