From aa857abe02d39085b7bf770cb8d2cc69ef1621bd Mon Sep 17 00:00:00 2001 From: Mukul Date: Sat, 8 Aug 2026 10:04:25 +0530 Subject: [PATCH] Move build constraints above the license header gofmt -s wants the //go:build line first in the file, and the rest of the repo follows that layout (see internal/fileutil/fileutil_unix.go). Without this the golangci-lint job fails on the formatter check. Signed-off-by: Mukul --- internal/plugin/installer/umask_unix_test.go | 4 ++-- internal/plugin/installer/umask_windows_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/plugin/installer/umask_unix_test.go b/internal/plugin/installer/umask_unix_test.go index ab97e0504..632509028 100644 --- a/internal/plugin/installer/umask_unix_test.go +++ b/internal/plugin/installer/umask_unix_test.go @@ -1,3 +1,5 @@ +//go:build !windows + /* Copyright The Helm Authors. Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +15,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -//go:build !windows - package installer import "syscall" diff --git a/internal/plugin/installer/umask_windows_test.go b/internal/plugin/installer/umask_windows_test.go index a03f3f499..fd60c0191 100644 --- a/internal/plugin/installer/umask_windows_test.go +++ b/internal/plugin/installer/umask_windows_test.go @@ -1,3 +1,5 @@ +//go:build windows + /* Copyright The Helm Authors. Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +15,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -//go:build windows - package installer // posixPermsSupported reports whether the platform honors POSIX file