Bug 2262897 - Out-of-date golang-google-genproto prevents Hugo build?
Summary: Out-of-date golang-google-genproto prevents Hugo build?
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-google-genproto
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mark E. Fuller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2261237
TreeView+ depends on / blocked
 
Reported: 2024-02-06 01:47 UTC by W. Michael Petullo
Modified: 2024-07-10 21:16 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-10 21:16:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description W. Michael Petullo 2024-02-06 01:47:11 UTC
Description of problem:
I maintain the Fedora hugo package. I am trying to update the package to a newer version, but building hugo on Rawhide is failing. I suspect this is because our golang-google-genproto package has fallen out-of-sync with packages like golang-gocloud-devel. (I might be wrong about this.)

Version-Release number of selected component (if applicable):
golang-google-genproto-devel-0-26.20220801git83ce21f.fc40

How reproducible:
Every time

Steps to Reproduce:
Try to build hugo (https://koji.fedoraproject.org/koji/taskinfo?taskID=113000375) or golang-gocloud (https://koji.fedoraproject.org/koji/taskinfo?taskID=112292964).

Actual results:
cannot use credentials.NewIamCredentialsClient(lifetimeCtx) (value of type *"cloud.google.com/go/iam/credentials/apiv1".IamCredentialsClient) as interface{SignBlob(context.Context, *"google.golang.org/genproto/googleapis/iam/credentials/v1".SignBlobRequest, ...gax.CallOption) (*"google.golang.org/genproto/googleapis/iam/credentials/v1".SignBlobResponse, error)} value in assignment: *"cloud.google.com/go/iam/credentials/apiv1".IamCredentialsClient does not implement interface{SignBlob(context.Context, *"google.golang.org/genproto/googleapis/iam/credentials/v1".SignBlobRequest, ...gax.CallOption) (*"google.golang.org/genproto/googleapis/iam/credentials/v1".SignBlobResponse, error)} (wrong type for method SignBlob)
                have SignBlob(context.Context, *credentialspb.SignBlobRequest, ...gax.CallOption) (*credentialspb.SignBlobResponse, error)
                want SignBlob(context.Context, *"google.golang.org/genproto/googleapis/iam/credentials/v1".SignBlobRequest, ...gax.CallOption) (*"google.golang.org/genproto/googleapis/iam/credentials/v1".SignBlobResponse, error)

Additional info:
I tried to build a golang-google-genproto package for a newer commit, namely 3a041ad873d4e257b101d959e4a0d08ae5904e65. Sadly, this required a multitude of package not yet available in Fedora:

No match for argument: golang(cloud.google.com/go/accessapproval/apiv1/accessapprovalpb)
No match for argument: golang(cloud.google.com/go/accesscontextmanager/apiv1/accesscontextmanagerpb)
No match for argument: golang(cloud.google.com/go/aiplatform/apiv1/aiplatformpb)
[...]
No match for argument: golang(cloud.google.com/go/workflows/apiv1beta/workflowspb)
No match for argument: golang(cloud.google.com/go/workflows/executions/apiv1/executionspb)
No match for argument: golang(cloud.google.com/go/workflows/executions/apiv1beta/executionspb)

Comment 1 W. Michael Petullo 2024-02-06 03:58:32 UTC
This seems related: https://bugzilla.redhat.com/show_bug.cgi?id=2224119.

Comment 2 Mark E. Fuller 2024-02-06 14:16:08 UTC
Unfortunately, I really don't have time to work on this presently. I would gladly hand-off golang-google-genproto or add an interested maintainer.

Comment 3 Mikel Olasagasti Uranga 2024-07-10 10:40:22 UTC
Mike, can you try against current package? It was updated ~3 months ago to a 2023-10 version that might be enough.

Comment 4 W. Michael Petullo 2024-07-10 21:16:59 UTC
Thank you for following up, Mikel! I had disabled Hugo's "deploy" feature in the package to get around this problem. The deploy feature is the part of Hugo that uses golang-google-genproto. I just reverted this change locally, and I found 0.126.2 built fine on Rawhide with this new golang-google-genproto package. I did have to disable some checks, but that is pretty standard as Rawhide changes.


Note You need to log in before you can comment on or make changes to this bug.