Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/config_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: config check
on:
pull_request:
push:
branches:
Comment thread
JoeWang1127 marked this conversation as resolved.
- main
permissions:
contents: read
jobs:
config-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Config check
run: |
V="$(sed -n 's/^version: *//p' librarian.yaml)"
go run "github.com/googleapis/librarian/tool/cmd/configcheck@${V}" .
- name: Update library versions and regenerate
if: failure()
run: |
echo "Library version is different between state.yaml and librarian.yaml.
Update versions in the configs according to the error message and
regenerate libraries using:

V=\$(sed -n 's/^version: *//p' librarian.yaml)
go run github.com/googleapis/librarian/cmd/librarian@\${V} generate --all
"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "GO",
"name": "cloud.google.com/go/pubsub/v2/apiv1",
"version": "2.5.0"
"version": "2.5.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unrelated, or you were trying to induce a difference for testing?

Copy link
Copy Markdown
Contributor Author

@JoeWang1127 JoeWang1127 Apr 1, 2026

Choose a reason for hiding this comment

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

This updates is caused by #14312

The release was done via an old version of legacylibrarian (v0.8.3) so the version in librarian.yaml is not updated. The latest version of legacylibrarian (v0.9.1 and above) will update version in librarian.yaml as well.

The check detected the version discrepancy and I updated it to be same in state.yaml.

},
"snippets": [
{
Expand Down
4 changes: 2 additions & 2 deletions librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -939,15 +939,15 @@ libraries:
- README.md
- internal/version.go
- name: pubsub
version: 1.50.1
version: 1.50.2
keep:
- README.md
- internal/version.go
skip_release: true
go:
nested_module: v2
- name: pubsub/v2
version: 2.5.0
version: 2.5.1
apis:
- path: google/pubsub/v1
keep:
Expand Down
2 changes: 1 addition & 1 deletion pubsub/internal/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubsub/v2/internal/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading