From 64b290c7f249e296908bd55d0fc5fc1088605239 Mon Sep 17 00:00:00 2001 From: Daniel Canter Date: Thu, 17 Feb 2022 13:29:51 -0800 Subject: [PATCH] Put Linux build tag on /internal/guest/transport/vsock.go Most of the code in /internal/guest has build tags as it's all Linux specific so apply one for vsock.go as well as vsock.Dial is unimplemented on Windows. This also fixes a linter issue we've been seeing on the push trigger for golangci-lint. It complains that the error check we're performing can never be true (err == nil) because on linting this file with GOOS=windows it will check the Windows implementation for vsock.Dial which is hard coded to return an unimplemented error always. Signed-off-by: Daniel Canter --- internal/guest/transport/vsock.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/guest/transport/vsock.go b/internal/guest/transport/vsock.go index c731b984aa..af5d46914a 100644 --- a/internal/guest/transport/vsock.go +++ b/internal/guest/transport/vsock.go @@ -1,3 +1,6 @@ +//go:build linux +// +build linux + package transport import (