Skip to content

Fix Windows setup, wrapper working directory, and per-repo bin path - #33

Merged
justhecuke merged 2 commits into
mainfrom
fix/windows-setup-and-wrappers
Nov 16, 2026
Merged

justhecuke merged 2 commits into
mainfrom
fix/windows-setup-and-wrappers

Conversation

@justhecuke

@justhecuke justhecuke commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes fresh-machine Windows setup, CLI wrapper argument/working-directory handling, and per-repository bootstrapper isolation.

Key Changes

  1. Windows Developer Mode & Bazel Config (.bazelrc, bin/bazel.py, README.md):
    • Documented Windows Developer Mode as a prerequisite for symlink-based runfiles and tooling.
    • Enabled build:windows --enable_runfiles directly in .bazelrc and removed the redundant injection in bin/bazel.py.
    • Fixed bin/bazel.py _bootstrap_venv to invoke sys.executable instead of shutil.which("python3"), avoiding the Windows Store python3.exe execution alias error (9009).
  2. Verbatim Wrapper Arguments & Workspace CWD (bin/wrapper_utils.py, bin/*.py, tools/run_in_cwd.py, tools/BUILD.bazel, py/wrappers_test.py):
    • Removed the resolve_paths parameter and -- path-rewriting from run_bazel_target so tools receive arguments verbatim (fixing staticcheck / go list ... -- unsafe and preventing accidental rewriting of non-path args).
    • Added tools/run_in_cwd.py and wrapped ruff_cli, buildifier, buildozer, goimports, and staticcheck in tools/BUILD.bazel so CLI invocations execute in BUILD_WORKING_DIRECTORY.
    • Fixed import ordering in py/main.py flagged by ruff-check once running from the workspace root.
  3. Per-Repo Bootstrapper Install Directory (setup.py, .github/workflows/ci.yml, README.md):
    • Moved bootstrapper installation (bazelisk, mise, prek) to %LOCALAPPDATA%\justhecuke\bazel-template\bin on Windows and ~/.local/justhecuke/bazel-template/bin on macOS/Linux.
    • Updated ensure_windows_path to check exact ;-delimited PATH entries and configure_shell_profile to respect an existing mise installation.

@justhecuke
justhecuke merged commit 7e1e145 into main Nov 16, 2026
1 check passed
@justhecuke
justhecuke deleted the fix/windows-setup-and-wrappers branch November 16, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants