extension-conformance / conformance (push) Canceled after 0s
24 lines
873 B
Markdown
24 lines
873 B
Markdown
# demo-consumer — pinned Git dependency consumer
|
|
|
|
`index.mq.md` imports the external package `demo-pure-lib` through the explicit
|
|
front-matter alias `m: "@math"`, where `math` is the `dependencies.math` alias
|
|
from the generated `marqdo.yaml`.
|
|
|
|
The tracked `marqdo.yaml.template` is **not** directly runnable: the test suite
|
|
substitutes:
|
|
|
|
* `__PURE_LIB_GIT_URL__` — `file://...` URL of a temporary Git repository
|
|
created from `../pure-lib` (or `$MARQDO_FIXTURE_GIT_URL` when set);
|
|
* `__PURE_LIB_REV__` — the **full 40-hex commit SHA** of that repository.
|
|
|
|
because a floating or short revision must be rejected. Expected output:
|
|
|
|
```text
|
|
42
|
|
正数
|
|
```
|
|
|
|
The generated project is exercised with `marqdo lock`, `marqdo sync`,
|
|
`marqdo check`, `marqdo run`, after deleting the source Git repository (offline
|
|
cache reuse), and after relocating the whole project directory.
|