Skip to content

fix(capi.lua): make Lua dependency identity exact - #197

Merged
Sunrisepeak merged 1 commit into
mainfrom
fix/capi-lua-exact-dep
Aug 9, 2026
Merged

fix(capi.lua): make Lua dependency identity exact#197
Sunrisepeak merged 1 commit into
mainfrom
fix/capi-lua-exact-dep

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Summary

  • keep the immutable mcpplibs.capi.lua@0.0.3 release payload unchanged
  • replace its legacy upstream Form A manifest with an index-side Form B bridge
  • declare the real C dependency as exact compat.lua@5.4.7
  • add a local-index consumer that imports the module and executes Lua code

Why

The upstream 0.0.3 manifest predates exact package selectors and declares bare lua. Under the exact identity contract, that means (mcpplibs, lua), while the C library is actually (compat, lua). This blocks xlings and other consumers once mcpp stops cross-namespace fallback.

Verification

  • mcpp 2026.8.8.2 xpkg parse across all descriptors
  • Lua syntax, mirror URL, package-name, cross-package-reference, and platform-version parity gates
  • PR mcpp local-index parse: 2 sources, 1 module, 1 target, exact compat.lua dependency
  • mcpp test -p tests/examples/capi-lua --no-cache: 1 passed, 0 failed
  • generated lock evidence records compat.lua and mcpplibs.capi.lua with exact namespaces

Fixes #196

Keep the immutable 0.0.3 release bytes, but bridge its legacy bare lua dependency with an inline Form B descriptor that names compat.lua exactly. Add an executable local-index consumer regression.\n\nRefs #196
@Sunrisepeak

Copy link
Copy Markdown
Member Author

Final validation checkpoint

All required checks are green (10/10): build, lint, select, timings, mirror reachability, graphics side-effect isolation, and workspace consumers on Linux default, Linux LLVM, macOS, and Windows.

The immutable mcpplibs.capi.lua@0.0.3 payload remains unchanged; only the index-side Form B bridge and executable exact-identity regression are added. The branch diff contains no machine-local paths or user data.

@Sunrisepeak
Sunrisepeak marked this pull request as ready for review August 9, 2026 15:11
@Sunrisepeak
Sunrisepeak merged commit b974cbb into main Aug 9, 2026
10 checks passed
@Sunrisepeak
Sunrisepeak deleted the fix/capi-lua-exact-dep branch August 9, 2026 15:11
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.

fix(capi.lua): make the Lua C dependency namespace exact

1 participant