goflags: go:build linux for tests that won't compile on other platforms (#24559)

I'm a heavy LSP user and I frequently goto:next_error. This confuses my
editor on macOS.
This commit is contained in:
Piotr Kazmierczak
2024-11-28 15:05:00 +01:00
committed by GitHub
parent 1f29a95c24
commit 3a18f22c18
4 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build linux
package allocrunner
import (

View File

@@ -1,8 +1,8 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build !windows
// +build !windows
//go:build linux
// +build linux
// todo(shoenig): Once Connect is supported on Windows, we'll need to make this
// set of tests work there too.

View File

@@ -1,6 +1,8 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build linux
package taskrunner
import (

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//go:build !windows
//go:build linux
package executor