Skip to content

Windows: a path on another drive is outside the repository, not an error (0.1.11) - #1952

Merged
swapnilpaliwal-sd merged 1 commit into
devfrom
fix/windows-test-links
Oct 14, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
devfrom
fix/windows-test-links

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor

Why

#1948's Windows release gate failed in GitHub Actions (run 38516660285, e2e on win32-x64) on what my Windows VM
could not show: GitHub's runner keeps the repository on D: and the user cache on C:.

File "axiomcode-index", line 57, in rel
    r = os.path.relpath(a, REPO).replace(os.sep, '/')
ValueError: path is on mount 'C:', start on mount 'D:'

relpath raises across drives on Windows, so --library (its compiled IR is in the user cache) failed the whole index
for any repository off C:. 0.1.11 is on main without this, so its release push would fail the same gate and draft
nothing.

What changes

  • axiomcode-index, axiomcode-graph: a path on another drive is outside the repository, as a .. path is, and is
    kept as written (with /).
  • ax_links (link), axiomcode-changed: an absolute path on another drive is kept as given rather than raising.
  • tests/no_exec.py: its control starts Git Bash (AXIOMCODE_BASH), not a bare bash, which is WSL's on GitHub's image.

POSIX is unchanged: relpath never raises there.

Verified

  • the other 1,841 of 1,844 checks, windows_argv and no_symlink already passed in that run; this is the remainder
  • full CI on this head (every platform's engines and e2e, the Windows gate included): run 38527702390
  • locally: no_exec 7/7; Java cases unchanged

🤖 Generated with Claude Code

relpath raises across drives on Windows, so a --library whose compiled IR sits in
the user cache on C: while the repository is on D: (as on GitHub's runner) failed the
whole index. axiomcode-index and axiomcode-graph read it as outside the repository, as
a `..` path is; a link or a changed file given absolutely on another drive is kept as
given. no_exec's control starts Git Bash, not a bare `bash` (WSL on GitHub's image).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 38414b4 into dev Oct 14, 2026
11 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the fix/windows-test-links branch October 14, 2026 07:44
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.

1 participant