Skip to content

Conversation

@skitt
Copy link
Member

@skitt skitt commented Oct 27, 2025

This avoids a dependency on go-github, which drops a few transitive dependencies that were only used to retrieve the latest release from the GitHub API. This helps our dependency tree...

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1544/skitt/drop-go-github-dep
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@skitt skitt mentioned this pull request Oct 27, 2025
@skitt skitt force-pushed the drop-go-github-dep branch 2 times, most recently from 6d26776 to f685b9d Compare October 28, 2025 09:30
if err == nil {
upgradeSubctlVersion = *latestRelease.TagName
tag, err := retrieveLatestReleaseTag()
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should at least log the error instead of silencing it. Also shouldn't this be:

Suggested change
if err != nil {
if err == nil {

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, yes, it should be! We didn’t log the error in the past, and where should we log it? This is in subctl, so apart from the screen there isn’t anywhere to log it. The error is unlikely to be user-actionable so this would probably only confuse people...

Copy link
Contributor

Choose a reason for hiding this comment

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

We can log it to the status as a warning. It may not be actionable but it would be informational, in case something else goes wrong as a side-effect that might provide a clue. I don't think it's best practice to ignore errors.

This avoids a dependency on go-github, which drops a few transitive
dependencies that were only used to retrieve the latest release from
the GitHub API. This helps our dependency tree...

Signed-off-by: Stephen Kitt <[email protected]>
@skitt skitt force-pushed the drop-go-github-dep branch from f685b9d to 4d5305e Compare October 30, 2025 11:24
@skitt skitt requested a review from tpantelis October 30, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants