Commit 7d83b8d
committed
fix(release): iterate all release PRs when refreshing Cargo.lock
The Cargo.lock refresh step in release-please.yml was gated on
steps.release.outputs.pr (singular), which under separate-pull-requests
only ever exposes one of the release PRs. On master's post-#382 run
the step successfully bumped Cargo.lock on the main-only PR #379 but
never touched fleet-agent PR #383, which is why #383 shipped with a
stale lockfile and would fail `cargo build --release --locked`.
Switch to iterating steps.release.outputs.prs (array of every currently
open release PR) and refresh Cargo.lock on each independently. Each
iteration is scoped to its own temp workdir and git config is set once
at the outer shell.
This replaces the earlier attempt on this branch to enable the
cargo-workspace release-please plugin. That plugin was suspected of
misbehaving against this repo's virtual-workspace layout (root
[workspace]-only manifest, members using version.workspace = true,
inter-crate versions pinned via # x-release-please-version generic
extra-files). The workflow step is a proven mechanism — the log from
the last release-please run showed it correctly refreshing 51
packages on the main release PR — it just wasn't iterating.1 parent 9ba2ad4 commit 7d83b8d
1 file changed
Lines changed: 33 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| |||
0 commit comments