Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@kelvin-acosta
Copy link
Contributor

Sort of a big one here, I broke the PR down into hopefully easy to follow commits. Let me know if I should separate these to commits into several PR's.

This brings some updates to the go version which was falling behind, addressing some vulns in the go libs along the way, and some fixes from running the linter. Also included some minor tooling changes, using golangci lint/formatting and replacing hub with gh.

@kelvin-acosta kelvin-acosta force-pushed the kelvin/maintenance branch 2 times, most recently from 3c7a55b to 0b0eaa2 Compare May 2, 2025 14:26
@kelvin-acosta kelvin-acosta changed the title go 1.24.2 + deprecation fixes + minor tooling updates go 1.24.3 + deprecation fixes + minor tooling updates May 22, 2025
@kelvin-acosta kelvin-acosta requested a review from smudge June 2, 2025 17:38
mergedSchema.Splits = append(mergedSchema.Splits, schema.Splits...)
mergedSchema.FeatureCompletions = append(mergedSchema.FeatureCompletions, schema.FeatureCompletions...)
mergedSchema.RemoteKills = append(mergedSchema.RemoteKills, schema.RemoteKills...)
mergedSchema.IdentifierTypes = append(mergedSchema.IdentifierTypes, schema.IdentifierTypes...)
Copy link
Member

Choose a reason for hiding this comment

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

Making sure I'm reading this properly -- the linter caught that append can accept a slice, meaning we don't need a for loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

append can accept multiple elements to append to at once and were using the spread operator to so.

return nil
}
return fmt.Errorf("Couldn't locate feature_completion of %s in schema", *f.featureGate)
return fmt.Errorf("couldn't locate feature_completion of %s in schema", *f.featureGate)
Copy link
Member

Choose a reason for hiding this comment

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

Why not? Should we be using something other than an inline string if we want to return a capital "C" to the end user?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is sort of a go idiom, https://google.github.io/styleguide/go/decisions.html#error-strings

If we do want to return a capital C we can ignore the linting rule

Copy link
Member

Choose a reason for hiding this comment

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

It's fine -- generally happy to stick with community conventions in 99.9% of cases.

Comment on lines +356 to +358
if err != nil {
return err
}
Copy link
Member

Choose a reason for hiding this comment

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

Good catches, these.

Comment on lines +6 to +7
- errcheck
- unused
Copy link
Member

Choose a reason for hiding this comment

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

Do you intend to circle back and enable either of these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I wanted to avoid adding any more changes to this PR.

Copy link
Member

@smudge smudge left a comment

Choose a reason for hiding this comment

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

domain LGTM && platform LGTM -- just some non-blocking questions - thanks for doing this! 👏

@kelvin-acosta kelvin-acosta merged commit 6f27af1 into main Jun 2, 2025
4 checks passed
@kelvin-acosta kelvin-acosta deleted the kelvin/maintenance branch June 2, 2025 19:07
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.