question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows, java/python/sh launcher: don't use cmd.exe's "copy" to concat binaries

See original GitHub issue

Bazel 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:closed
  • Created 6 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
laszlocsomorcommented, Sep 25, 2017

Yes. I’m reviving Yun’s LauncherFileWriteAction.

0reactions
laszlocsomorcommented, Sep 25, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found