Commit ae1b13f
committed
fix(release): make the full crate graph crates.io-publishable
The release workflow advertised `cargo install harmont-cli` (README,
install.sh fallback, crates.io badge) but the publish chain could never
succeed:
- hm-vm carried `publish = false`, yet it is a hard dependency of both
hm-exec and harmont-cli. cargo refuses to publish a crate that depends
on an unpublishable one, so `cargo publish -p harmont-cli` (and
-p hm-exec) failed outright. (crates-io-1)
- release.yml never bumped or published hm-config, hm-render, or
hm-exec; harmont-cli pinned them at version 0.0.0-dev, which cannot
resolve on crates.io. (crates-io-2)
- With the chain broken, `cargo install harmont-cli` was a dead install
path. (cargo-install-3)
The infrastructure clearly intends crates.io distribution (badge, README,
install.sh, RELEASING.md, six existing publish steps), so this completes
the chain rather than dropping it:
- Drop `publish = false` from hm-vm and give it the required publish
metadata (repository + description).
- Stamp the tagged version into hm-config, hm-render, hm-vm, hm-exec and
rewrite their workspace.dependencies pins alongside the existing ones.
- Add ordered `cargo publish` steps for hm-config, hm-render, hm-vm,
hm-exec in dependency (topological) order before hm-plugin-cloud and
harmont-cli.
- Add a publishability guard: `cargo package --workspace` runs before any
real publish. It resolves sibling path deps locally (unlike
`cargo publish --dry-run`, which would fail on the not-yet-indexed
deps) and fails fast on the publish=false / unpublished-dep regression
class. Verified locally: it errors with hm-vm publish=false restored,
and packages all 10 crates once the fix is applied.
- Update RELEASING.md to describe the real (10-crate, topologically
ordered) chain and drop the stale `hm-plugin-sdk` reference.
`cargo install harmont-cli` is now a working path.
Fixes: crates-io-1, crates-io-2, cargo-install-31 parent 3cdf447 commit ae1b13f
3 files changed
Lines changed: 88 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
48 | | - | |
49 | | - | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
| 61 | + | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
| |||
75 | 96 | | |
76 | 97 | | |
77 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
78 | 110 | | |
79 | 111 | | |
80 | 112 | | |
| |||
86 | 118 | | |
87 | 119 | | |
88 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
89 | 154 | | |
90 | 155 | | |
91 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments