Commit 93e59b5
committed
0.19.0: one resolver for where a member's tool comes from, payloads installed on request, and a toolchain a build program states
A member that runs a program answers one question before it can plan anything:
which program. Each member answered it its own way -- an option here, a variable
there, a silent PATH fallback in two members and a refusal of PATH in two others
-- and a tool named in build.mcpp did not stop the declared payload from being
downloaded. On the engine of mcpp#755 this release answers it once.
- `mcpp.plugins.tool` (in `plugins-core`) resolves a member's tool in one order:
the build program's choice, the member's legacy variable, the engine's
override, then the declared payload. A choice never asks for the payload,
which is what makes "the build program names its own tool" mean "the payload
is not downloaded". Every answer is recorded with `mcpp::decision`, so a build
reports the source and `mcpp why tool <name>` can answer, and one refusal text
lists every way to name the tool.
- Every member that runs a payload tool takes its option as a `tool::choice`,
which a string constructs, so `o.cmake = "/usr/bin/cmake"` keeps working and
the line that wrote it is what the build reports. `rules-cuda`, `rules-hip`,
`rules-ascendc` and `dist-apk` gain the options they had none of.
- `deps-cmake`, `deps-archive`, `deps-vcpkg`, `dist-appimage` and `dist-apk`'s
`bundletool` declare their payloads `provision = "on-request"`: a build that
names its own tool, or never reaches the tool, downloads nothing.
- `rules-spirv` and `rules-slang` keep their PATH fallback behind a warning that
names the choice to write instead, until 2027-04-01 (SPEC-007 R6.2).
- `mcpp.plugins.toolchain` (feature `plugins-toolchain`) builds the statement a
root build program makes in its toolchain phase: `layout`, `prefixed`,
`compose`, `from_env_script`, `with_launcher`, `managed`, `env`, `configure`
and `use`.
- `mcpp.plugins.testing` states a payload's source, its program and the phase, so
a case can describe an override or a pending payload.
The engine floor is 2026.10.1.3, the release whose protocol 15 states where each
tool and payload comes from.
Closes #41
Test plan
- `tests/plugin-logic`: 27 cases pass, including five for the resolver (a choice
asks for no payload, an override answers, a pending payload is requested, the
payload answers last, and the refusal lists every way to name the tool).
- 11 consumer fixtures build against the engine branch, `all-rules-compile`
compiles every rule and dist member, and the default build's output is
unchanged.
- New CI criterion `tool-sources` on all three platforms: with nothing named the
member asks for the payload; with the build program naming a cmake the payload
is not asked for and the source is reported; an override says the same; and
`--managed-only` refuses both. The criterion reads `resolution.json`, so it
holds on a runner that already has the payload.1 parent 6dc3490 commit 93e59b5
30 files changed
Lines changed: 1414 additions & 230 deletions
File tree
- .agents/docs
- .github
- scripts
- workflows
- deps
- dist
- docs
- rules
- src
- tests/plugin-logic
Lines changed: 79 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
579 | 668 | | |
| 669 | + | |
580 | 670 | | |
581 | 671 | | |
582 | 672 | | |
| |||
592 | 682 | | |
593 | 683 | | |
594 | 684 | | |
595 | | - | |
| 685 | + | |
596 | 686 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| |||
1690 | 1697 | | |
1691 | 1698 | | |
1692 | 1699 | | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1693 | 1706 | | |
1694 | 1707 | | |
1695 | 1708 | | |
| |||
2388 | 2401 | | |
2389 | 2402 | | |
2390 | 2403 | | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
2391 | 2410 | | |
2392 | 2411 | | |
2393 | 2412 | | |
| |||
0 commit comments