Repository navigation
Fix Windows setup, wrapper working directory, and per-repo bin path - #33
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes fresh-machine Windows setup, CLI wrapper argument/working-directory handling, and per-repository bootstrapper isolation.
Key Changes
.bazelrc,bin/bazel.py,README.md):build:windows --enable_runfilesdirectly in.bazelrcand removed the redundant injection inbin/bazel.py.bin/bazel.py_bootstrap_venvto invokesys.executableinstead ofshutil.which("python3"), avoiding the Windows Storepython3.exeexecution alias error (9009).bin/wrapper_utils.py,bin/*.py,tools/run_in_cwd.py,tools/BUILD.bazel,py/wrappers_test.py):resolve_pathsparameter and--path-rewriting fromrun_bazel_targetso tools receive arguments verbatim (fixingstaticcheck/go list ... -- unsafeand preventing accidental rewriting of non-path args).tools/run_in_cwd.pyand wrappedruff_cli,buildifier,buildozer,goimports, andstaticcheckintools/BUILD.bazelso CLI invocations execute inBUILD_WORKING_DIRECTORY.py/main.pyflagged byruff-checkonce running from the workspace root.setup.py,.github/workflows/ci.yml,README.md):bazelisk,mise,prek) to%LOCALAPPDATA%\justhecuke\bazel-template\binon Windows and~/.local/justhecuke/bazel-template/binon macOS/Linux.ensure_windows_pathto check exact;-delimited PATH entries andconfigure_shell_profileto respect an existingmiseinstallation.