Skip to content

fix: avoid protobuf copylocks in runtime#868

Open
immanuwell wants to merge 1 commit into
firecracker-microvm:mainfrom
immanuwell:fix/govet-copylocks-runtime
Open

fix: avoid protobuf copylocks in runtime#868
immanuwell wants to merge 1 commit into
firecracker-microvm:mainfrom
immanuwell:fix/govet-copylocks-runtime

Conversation

@immanuwell

@immanuwell immanuwell commented May 30, 2026

Copy link
Copy Markdown

Fixes #811

go vet ./... on main reports copylocks warnings in the runtime paths, same deal in a few tests too.

This switches those cases to pointers or proto.Clone(...), so we stop copying protobuf message state by value. also keeps default network interfaces detached from runtime config.

repro

  1. checkout main
  2. run go vet ./...
  3. see copylocks warnings from runtime/service.go, runtime/benchmark_test.go, and runtime/service_integ_test.go

checks
go vet ./...
make lint
DISABLE_ROOT_TESTS=1 go test ./...

Signed-off-by: immanuwell <pchpr.00@list.ru>
@immanuwell immanuwell requested a review from a team as a code owner May 30, 2026 18:13
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.

Resolve govet copylocks lint errors

1 participant