Files
marqdo-cli/examples/packages-multi-version/README.md
T
cflmy 4ce37afb39 feat(m0.6-r6): release examples, public schemas and cross-platform CI
- add runnable examples for an unknown-name Tool, multi-export plugin,
  external kernel provider and same-name multi-version packages
- add JSON Schemas for Analysis v1, Trace v1 and Tool v1 and validate them in CI
- extend CI with protocol/consumer smoke tests and a Windows/macOS cargo check
- add --kernel provider descriptors and R6 example integration tests
- document the examples and update M0.6 status
2026-11-20 11:50:27 +08:00

20 lines
607 B
Markdown

# Multi-version package example
Two directories declare the same package name `geometry` at versions `1.0.0`
and `2.0.0`. They receive different package-instance ids and different
`ModuleId`s; importing both aliases is not an implicit override.
```sh
marqdo run examples/packages-multi-version/index.mq.md
marqdo lock
```
`marqdo lock` must be run from the example directory because it discovers the
project from the current working directory:
```sh
(cd examples/packages-multi-version && ../../target/debug/marqdo lock)
```
The lock records both content-addressed instances; no version silently wins.