Skip to content

proposal: release-please: make it possible to write library versions to librarian.yaml #4976

@julieqiu

Description

@julieqiu

Several language repositories use release-please for releases and are incrementally migrating to librarian, which tracks library versions in librarian.yaml.

The version in librarian.yaml matters because librarian generate embeds it into the generated source. Today, release-please has no awareness of this file, so versions can drift if a repo adopts librarian for generation but not for version bumping.

We should add a release-please updater that writes the released version to the corresponding entry in librarian.yaml. As a precedent, release-please updates internal/version.go:

A similar approach can locate the matching library entry in librarian.yaml and update its version field.

This lets us split the migration process so that repos can adopt librarian for generation independently of release.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions