You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: [indices] TOML parsing, IndexSpec data structure, and project-level isolation (#39)
Implement the first phase of custom package index support:
- Fill in IndexSpec struct in src/pm/index_spec.cppm (name, url, rev, tag,
branch, path) with is_local/is_pinned/is_builtin helpers
- Parse [indices] section in mcpp.toml (short string form, inline table
with url/rev/tag/branch/path, and local path form)
- Parse [indices] section in config.toml (global config)
- Add indices field to Manifest and GlobalConfig structs
- Add projectDir field to xlings::Env; build_command_prefix conditionally
sets XLINGS_PROJECT_DIR for project-level isolation
- Add ensure_project_index_dir() to create .mcpp/.xlings.json with custom
index entries when non-builtin indices are configured
- Add Fetcher::read_xpkg_lua_from_path() for local path index support
- Update cmd_index_list to display project-level indices from mcpp.toml
- Update prepare_build to set up .mcpp/ directory for custom indices
- Add E2E test (42_custom_local_index.sh) verifying parsing + display
0 commit comments