-
Notifications
You must be signed in to change notification settings - Fork 119
google-cloud-gkehub-v1: generate fails with librarian@v0.8.1-0.20260204142215-81ff6187893a #4553
Copy link
Copy link
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
~/co/googlea/google-cloud-rust librarianops…l-2026-02-04 *1 !12 ❯ go run github.com/googleapis/librarian/cmd/librarian@main generate google-cloud-gkehub-v1
go: github.com/googleapis/librarian@v0.8.1-0.20260204142215-81ff6187893a requires go >= 1.25.6; switching to go1.25.7
2026/02/04 11:20:38 librarian: /Users/julieqiu/.cargo/bin/cargo fmt -p google-cloud-gkehub-v1: exit status 1
error: expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, `=`, or `>`, found `.`
--> /Users/julieqiu/code/googleapis/google-cloud-rust/src/generated/cloud/gkehub/v1/src/model.rs:1066:90
|
1009 | impl CommonFeatureState {
| - while parsing this item list starting here
...
1066 | pub fn rbacrolebindingactuation(&self) -> std::option::Option<&std::boxed::Box<google.cloud.gkehub.rbacrolebindingactuation.v1::Featu...
| ^ expected one of 9 possible tokens
...
1095 | }
| - the item list ends here
|
help: you might have meant to end the type parameters here
|
1066 | pub fn rbacrolebindingactuation(&self) -> std::option::Option<&std::boxed::Box<google>.cloud.gkehub.rbacrolebindingactuation.v1::FeatureState>> {
| +
error: expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, `=`, or `>`, found `.`
--> /Users/julieqiu/code/googleapis/google-cloud-rust/src/generated/cloud/gkehub/v1/src/model.rs:1113:56
|
1111 | pub enum FeatureState {
| ------------ while parsing this enum
1112 | /// RBAC Role Binding Actuation feature state
1113 | Rbacrolebindingactuation(std::boxed::Box<google.cloud.gkehub.rbacrolebindingactuation.v1::FeatureState>),
| ^ expected one of 9 possible tokens
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
help: you might have meant to end the type parameters here
|
1113 | Rbacrolebindingactuation(std::boxed::Box<google>.cloud.gkehub.rbacrolebindingactuation.v1::FeatureState>),
| +
Error writing files: failed to resolve mod `model`: cannot parse /Users/julieqiu/code/googleapis/google-cloud-rust/src/generated/cloud/gkehub/v1/src/model.rs
exit status 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.