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.
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 generateembeds 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.