Skip to content

Commit 8ad8174

Browse files
authored
ci: Update uv.lock on release-please PRs (#870)
`uv 0.6.6` adds a hard error when the version of the package in `uv.lock` does not match the one declared in the editable wheel: astral-sh/uv#12235. `release-please` doesn't update the lock files automatically, so release PRs needed a manual lock update. This PR adds the lockfile as an `extra-file`, to avoid this manual step. Note that the _jsonpath_ in the config is not technically correct, as release-please's json array filters don't quite work for toml files. See googleapis/release-please#2455, which includes this hacky workaround.
1 parent a613068 commit 8ad8174

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

release-please-config.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
"bump-patch-for-minor-pre-major": false,
88
"draft": false,
99
"prerelease": false,
10-
"draft-pull-request": true
10+
"draft-pull-request": true,
11+
"extra-files": [
12+
{
13+
"type": "toml",
14+
"path": "uv.lock",
15+
"jsonpath": "$.package[?(@.name.value=='guppylang')].version"
16+
}
17+
]
1118
}
1219
},
1320
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

0 commit comments

Comments
 (0)