fix: Windows sub-index repo build failure#198
Merged
Sunrisepeak merged 5 commits intomainfrom Mar 8, 2026
Merged
Conversation
- Bump mcpplibs-xpkg 0.0.25 -> 0.0.26 which fixes:
- os.files build sandbox using ls/test (Unix-only) replaced with C++
std::filesystem (cross-platform)
- run_pkgindex_build using 2>/dev/null replaced with 2>/dev/null on Windows
- Add Windows e2e test for sub-index search with pkgindex-build.lua
- Add E2E-07 step to Windows CI workflow
Fixes: xlings update fails to build sub-index repo index on Windows
("The system cannot find the path specified" error from 2>/dev/null,
and os.files returning empty table due to ls -1 not existing)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace file:/// URLs with plain forward-slash paths in xim-indexrepos.lua — git clone handles local paths directly - Add diagnostic output: print xim-indexrepos.lua content, xlings update output, and xim-index-repos directory listing - Check $LASTEXITCODE after xlings update Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rewrite sub_index_search_test.ps1 to reuse the release test infrastructure instead of creating custom fixtures with junctions. Now tests d2x:d2mcpp install end-to-end, which validates the C++ os.files/os.isdir pkgindex-build fix on Windows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds C++ implementations of os.cp, os.trymv, os.tryrm, os.mkdir, os.isfile, os.iorun to fix Windows install hook failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
mcpplibs-xpkg0.0.25 → 0.0.27 to fix Windows sub-index repo index building and install hookssub_index_search_test.ps1) for sub-index search + pkgindex-buildRoot Cause
On Windows,
xlings updatecould not build sub-index repo indexes, andxlings install d2x:d2mcppfailed becauseos.cp/os.mkdir/etc. used Unix shell commands (cp -a,rm -rf,mkdir -p,mv) that don't exist on Windows.Changes in libxpkg v0.0.26
os.files/os.isdirin build sandbox: pure C++std::filesystemimplementation (cross-platform)run_pkgindex_build: platform-conditional null device (2>nulvs2>/dev/null)Changes in libxpkg v0.0.27
os.*overrides replacing shell-based Lua implementations:os.cp(src, dst)— recursive copy viastd::filesystem::copyos.trymv(src, dst)/os.mv— rename with cross-device fallbackos.tryrm(path)— recursive remove viastd::filesystem::remove_allos.mkdir(path)— nested directory creation viastd::filesystem::create_directoriesos.isfile(path)— file detection viastd::filesystem::is_regular_fileos.iorun(cmd)— stdout capture with platform-correct stderr suppressionTest plan
xlings updateon Windows correctly builds d2x sub-indexxlings install d2x:d2mcpp -yworks on Windows after update🤖 Generated with Claude Code