Skip to content
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

RSDK-9290 - Bump go to 1.23 #392

Merged
merged 6 commits into from
Nov 19, 2024
Merged

RSDK-9290 - Bump go to 1.23 #392

merged 6 commits into from
Nov 19, 2024

Conversation

cheukt
Copy link
Member

@cheukt cheukt commented Nov 18, 2024

it was more work to get the linter to work properly without bumping the go version

mostly took inspiration from the equivalent bump in rdk

most of the changes came from just running lint

@viambot viambot added the safe to test Mark as safe to test label Nov 18, 2024
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Nov 18, 2024
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Nov 18, 2024
- gen$
- vendor$
- test$
skip-dirs-use-default: false
tests: true
linters:
enable-all: true
disable:
- asasalint
Copy link
Member Author

Choose a reason for hiding this comment

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

all the changes to disabled linters are mirrored from rdk

@@ -57,7 +57,7 @@ func NewCloudExporter(opts CloudOptions) (Exporter, error) {
zone := os.Getenv("GCP_COMPUTE_ZONE")
if zone == "" {
// Get from GCP Metadata
if zone, err = metadata.Zone(); err != nil {
if zone, err = metadata.ZoneWithContext(sdOpts.Context); 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.

could see just using a background context as well, not clear if the context used here is the right one

@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Nov 19, 2024
@cheukt cheukt merged commit 86ce518 into viamrobotics:main Nov 19, 2024
6 checks passed
@cheukt cheukt deleted the bump-to-1.23 branch November 19, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Mark as safe to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants