Skip to content

bump rdk to v0.117.0 and update linter#15

Open
JohnN193 wants to merge 6 commits intomainfrom
pr-a-deps
Open

bump rdk to v0.117.0 and update linter#15
JohnN193 wants to merge 6 commits intomainfrom
pr-a-deps

Conversation

@JohnN193
Copy link
Collaborator

Mechanical dependency and tooling updates — no behavior changes.

  • Bump go.viam.com/rdk v0.61.0 → v0.117.0, api v0.1.387 → v0.1.527, utils v0.1.128 → v0.4.13
  • Bump golangci-lint from v1.62.2 to v1.64.8 (fixes CI failures caused by Go version mismatch; v1.62.2 was built with Go 1.23 and rejects Go 1.25.1 targets)
  • Add GOTOOLCHAIN=go$(GOVERSION) to lint target so go run uses the Go version from go.mod
  • Remove two deprecated golangci config options: run.skip-dirs-use-default and linters-settings.gofumpt.lang-version

Part of a series: PR A → [PR B] → [PR C] → [PR D]

JohnN193 and others added 2 commits March 20, 2026 15:42
- Update go.viam.com/rdk v0.61.0 → v0.117.0
- Update go.viam.com/api v0.1.387 → v0.1.527
- Update go.viam.com/utils v0.1.128 → v0.4.13
- Switch golangci-lint from go.mod dependency to go run @v1.62.2 (matches rdk pattern)
- Fix pointcloud.ReadPCD call in thumbnail.go (new signature requires second arg)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
v1.62.2 was built with Go 1.23 and rejects Go 1.25.1 targets.
v1.64.8 is built with Go 1.26.1 and handles it correctly.

Also remove two deprecated config options:
- run.skip-dirs-use-default (already covered by issues.exclude-use-default)
- linters-settings.gofumpt.lang-version (moved to global run.go)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JohnN193 JohnN193 mentioned this pull request Mar 20, 2026
JohnN193 and others added 4 commits March 20, 2026 15:51
rdk v0.117.0 changed Config.Validate to return (requiredDeps, optionalDeps []string, err error).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without this, go run uses the host Go version, which may be lower than
the version in go.mod and causes golangci-lint to reject the target.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- slam.FromDependencies → slam.FromProvider
- resp.SessionId / resp.MapUrl → getter methods (proto style)
- res.GetFileId() → extract file_id from res.GetBinaryDataId()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
actionlint requires checkout@v4 or newer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
go mod tidy
export pkgs="`go list -f '{{.Dir}}' ./... | grep -v /proto/`" && echo "$$pkgs" | xargs go vet -vettool=$(TOOL_BIN)/combined
GOGC=50 $(TOOL_BIN)/golangci-lint run -v --fix --config=./etc/golangci.yaml
GOTOOLCHAIN=go$(GOVERSION) GOGC=50 go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8 run -v --fix --config=./etc/golangci.yaml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

linter was upset so i just tried copying what was in rdk

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.

1 participant