Windows, java/python/sh launcher: don't use cmd.exe's "copy" to concat binaries
See original GitHub issueBazel uses cmd.exe’s copy command to concat the launcher stub and the java/python/sh binary. This is how we get .exe files as {java/py/sh}_binary outputs.
The rules create an action that concats the launcher (a C++ binary) and the launch info (properties of the actual binary such as main class name + the binary itself):
bin/bash.exe -c cmd.exe /c "copy /Y /B external\bazel_tools\tools\launcher\launcher.exe+bazel-out\host\bin\external\bazel_tools\src\tools\android\java\com\google\devtools\build\android\ResourceProcessorBusyBox.launch_info bazel-out\host\bin\external\bazel_tools\src\tools\android\java\com\google\devtools\build\android\ResourceProcessorBusyBox.exe > nul".
However cmd.exe cannot handle long paths, therefore this action also doesn’t.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
windows - Python shebang not working - Stack Overflow
Using a forward slash in the cmd shell generally requires double quotes, so use either .\words.py or "./words.py" . There's no reason to...
Read more >Missing `py` binary in the windows installer · Issue #149 - GitHub
I've tested conda with the official Python Launcher for Windows ( py.exe and pyw.exe ), and it works perfectly, though there are a...
Read more >shebang python windows - Dr. Chytra V Anand
The Python launcher for Windows is a utility which aids in locating and executing of different Python versions. The easiest way is to...
Read more >How to use Python's py launcher for Windows - InfoWorld
Run Python scripts with the py launcher. To run a Python script with the py launcher, simply substitute py and its command-line switches...
Read more >Python Documentation contents — Python 3.11.1 documentation
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes. I’m reviving Yun’s LauncherFileWriteAction.
Yes, that sounds like a good idea. It pivots around https://github.com/bazelbuild/bazel/issues/2870 though, but I’m working on it as we speak.