Skip to content

Replace sigs.k8s.io/release-sdk with underlying github library #1211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pluies
Copy link
Contributor

@Pluies Pluies commented May 2, 2025

What type of PR is this?

/kind bug

/kind regression

What this PR does / why we need it:

We're running into this issue in zeitgeist:

FATA error during command execution: &fmt.wrapError{msg:"dependency zeitgeist: retrieving GitHub repository: getting repository: json: cannot unmarshal array into Go struct field Repository.custom_properties of type string", err:(*fmt.wrapError)(0x14000343ce0)}  file="zeitgeist/main.go:31"

This is a known issue with github.com/google/go-github/v60, cf: google/go-github#3230

The github functionality is provided by sigs.k8s.io/release-sdk, which includes the github library above, ubt even the latest version only includes go-github/v60.

Given we're only using the github functionality from the release-sdk, let's pull the release-sdk out and switch to using only the underlying go library, which we also update here to fix the bug.

Which issue(s) this PR fixes:

Special notes for your reviewer:

cc @cpanato for sanity-check, I'm also open to bumping sigs.k8s.io/release-sdk with the correct version but it's more effort and I'm lazy :)

Does this PR introduce a user-facing change?

NONE

We're running into this issue in zeitgeist:
```
FATA error during command execution: &fmt.wrapError{msg:"dependency zeitgeist: retrieving GitHub repository: getting repository: json: cannot unmarshal array into Go struct field Repository.custom_properties of type string", err:(*fmt.wrapError)(0x14000343ce0)}  file="zeitgeist/main.go:31"
```

This is a known issue with github.com/google/go-github/v60, cf:
google/go-github#3230

The github functionality is provided by sigs.k8s.io/release-sdk, which
includes the github library above, ubt even the latest version only
includes go-github/v60.

Given we're only using the github functionality from the release-sdk,
let's pull the release-sdk out and switch to using only the underlying
go library, which we also update here to fix the bug.
@Pluies Pluies requested a review from cpanato May 2, 2025 09:40
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 2, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Pluies

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from cici37 and jimangel May 2, 2025 09:40
@k8s-ci-robot k8s-ci-robot added sig/release Categorizes an issue or PR as relevant to SIG Release. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/release Categorizes an issue or PR as relevant to SIG Release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants