Commit dd2ee59
fix(ci): scope publish script version sed to package section only (#574)
The update_versions function replaced ALL lines matching ^version = "..."
which corrupted dependency versions in multi-line [dependencies.X] blocks.
For example, notify's version "6.1" in terraphim_router was changed to
"1.10.0", causing cargo publish to fail with "failed to select a version".
Fix: use sed range addressing (0,/pattern/ on GNU, 1,/pattern/ on BSD)
to only replace the first occurrence -- the [package] version line.
Co-authored-by: Terraphim AI <noreply@anthropic.com>1 parent c3190dd commit dd2ee59
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | | - | |
| 200 | + | |
199 | 201 | | |
200 | | - | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
| |||
0 commit comments