Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Jan 22, 2026

Summary

  • Remove extra-files config from release-please (generic updater doesn't work for uv.lock)
  • Add workflow steps to update uv.lock when release PR is created/updated

The release-please generic updater cannot reliably identify the correct version line in uv.lock since many packages have version fields. Instead, the workflow now runs uv lock after release-please creates/updates the PR.

Test plan

  • Verify release PR includes uv.lock update commit

Summary by cubic

Move uv.lock updates from release-please to the release workflow. The release job now checks out the PR branch, runs uv lock, and commits changes so the lockfile matches the bumped version.

  • Bug Fixes
    • Removed uv.lock from release-please extra-files (generic updater is unreliable).
    • Added workflow steps to run uv lock on release PRs via Nix, then commit/push only if uv.lock changed.

Written for commit 3ca1628. Summary will update on new commits.

The release-please generic updater cannot reliably identify the correct
version line in uv.lock (too many packages have version fields). Instead,
run `uv lock` after release-please creates/updates the PR to regenerate
the lockfile with the updated pyproject.toml version.

- Remove extra-files config from release-please
- Add workflow steps to checkout release branch, run uv lock, and commit
Copilot AI review requested due to automatic review settings January 22, 2026 11:03
@ryoppippi ryoppippi changed the title fix(release): update uv.lock via workflow instead of release-please ci(release): update uv.lock via workflow instead of release-please Jan 22, 2026
@ryoppippi ryoppippi merged commit 1148757 into main Jan 22, 2026
19 checks passed
@ryoppippi ryoppippi deleted the fix/release-uv-lock-update branch January 22, 2026 11:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the uv.lock update mechanism during releases by moving the update logic from release-please's generic updater (which cannot reliably identify the correct version line in uv.lock) to a dedicated workflow step that runs uv lock after the release PR is created.

Changes:

  • Removed extra-files configuration from .release-please-config.json that attempted to update uv.lock using the generic updater
  • Added workflow steps to checkout the release PR branch, run uv lock, and commit changes when needed

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.release-please-config.json Removed non-functional extra-files configuration for uv.lock
.github/workflows/release.yaml Added steps to update uv.lock by running uv lock when release PR is created/updated

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants