feat(workspace): self-referential mcpp [workspace] over the index#57
Merged
Conversation
The repo becomes both the package index (pkgs/) and a mcpp workspace that consumes it: a virtual root [workspace] whose members are the per-library example projects under tests/examples/, each resolving this repo's own pkgs/ via a local [indices] path. Eat our own dog food. - root mcpp.toml: [workspace].members = cjson/eigen/nlohmann.json/openblas - tests/run_workspace.sh: thin driver, members are the single source of truth - tests/examples/openblas: L1-cfg consumer — Windows-only openblas dep+flags (cfg(windows)), cblas_dgemm assert on Windows, no-op on linux/macos - validate.yml: detect.workspace output + smoke-workspace job; MCPP_VERSION 0.0.73 -> 0.0.77 (carries L1 per-OS deps/flags + [xlings] env) - design doc: §8 implementation status
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.
What
Makes mcpp-index both the package index (
pkgs/) and a mcpp[workspace]that consumes it — the dual perspective. A virtual root[workspace]declares the per-library example projects undertests/examples/as members; each resolves this repo's ownpkgs/through a local[indices]path. "Eat our own dog food."Changes
mcpp.toml(repo root) — virtual[workspace],members = cjson / eigen / nlohmann.json / openblas.tests/run_workspace.sh— thin driver; parses[workspace].membersfrom the root manifest (single source of truth, no hardcoded duplication) andmcpp build && mcpp runs each member through the real index.tests/examples/openblas/— new L1-cfg consumer:[target.'cfg(windows)'.dependencies.compat] openblas+cfg(windows).build cxxflags=["-DHAVE_OPENBLAS=1"]. On Windows it callscblas_dgemmasserting[19 22; 43 50]; on linux/macos it is a no-op and openblas is not pulled — proving per-OS deps gate on the resolved target triple. (Needs mcpp ≥ 0.0.75 cfg deps/flags + ≥ 0.0.73 windows-runtime-DLL deploy.).github/workflows/validate.yml—detectgains aworkspaceoutput (push/schedule always; PR when rootmcpp.toml,tests/run_workspace.sh, or anytests/examples/*member changes) + newsmoke-workspacejob running the driver.MCPP_VERSION0.0.73 → 0.0.77.Verified locally (mcpp 0.0.77)
cjsonbuilds+runs (resolvescompat.cjsonfrom ownpkgs/);openblasbuilds+runs no-op on linux (openblas not pulled).validate.ymlpassesyaml.safe_load.🤖 Generated with Claude Code