From f522e74528e8282874092ff7659e4a3828fa276a Mon Sep 17 00:00:00 2001 From: Mauricio Poppe Date: Wed, 25 Aug 2021 18:07:04 +0000 Subject: [PATCH] Add new build constraint format From https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md, the updates were generated with ./hack/update-gofmt.sh --- pkg/gce-pd-csi-driver/utils_linux.go | 2 +- pkg/gce-pd-csi-driver/utils_windows.go | 2 +- pkg/mount-manager/safe-mounter-v1_windows.go | 2 +- pkg/mount-manager/safe-mounter-v1beta_windows.go | 2 +- pkg/mount-manager/safe-mounter_linux.go | 2 +- pkg/mount-manager/safe-mounter_windows.go | 2 +- pkg/mount-manager/statter_windows.go | 3 ++- pkg/resizefs/resizefs_linux.go | 2 +- pkg/resizefs/resizefs_windows.go | 2 +- 9 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pkg/gce-pd-csi-driver/utils_linux.go b/pkg/gce-pd-csi-driver/utils_linux.go index a56a21957..9247b78b2 100644 --- a/pkg/gce-pd-csi-driver/utils_linux.go +++ b/pkg/gce-pd-csi-driver/utils_linux.go @@ -1,4 +1,4 @@ -// +build !windows +//go:build !windows /* Copyright 2020 The Kubernetes Authors. diff --git a/pkg/gce-pd-csi-driver/utils_windows.go b/pkg/gce-pd-csi-driver/utils_windows.go index 64ace7ce8..42fcf881f 100644 --- a/pkg/gce-pd-csi-driver/utils_windows.go +++ b/pkg/gce-pd-csi-driver/utils_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows /* Copyright 2020 The Kubernetes Authors. diff --git a/pkg/mount-manager/safe-mounter-v1_windows.go b/pkg/mount-manager/safe-mounter-v1_windows.go index 03c97bc48..7592d9154 100644 --- a/pkg/mount-manager/safe-mounter-v1_windows.go +++ b/pkg/mount-manager/safe-mounter-v1_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows /* Copyright 2021 The Kubernetes Authors. diff --git a/pkg/mount-manager/safe-mounter-v1beta_windows.go b/pkg/mount-manager/safe-mounter-v1beta_windows.go index b96db39ff..7a863450c 100644 --- a/pkg/mount-manager/safe-mounter-v1beta_windows.go +++ b/pkg/mount-manager/safe-mounter-v1beta_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows /* Copyright 2021 The Kubernetes Authors. diff --git a/pkg/mount-manager/safe-mounter_linux.go b/pkg/mount-manager/safe-mounter_linux.go index b807458d7..40f6c7b3e 100644 --- a/pkg/mount-manager/safe-mounter_linux.go +++ b/pkg/mount-manager/safe-mounter_linux.go @@ -1,4 +1,4 @@ -// +build linux +//go:build linux /* Copyright 2018 The Kubernetes Authors. diff --git a/pkg/mount-manager/safe-mounter_windows.go b/pkg/mount-manager/safe-mounter_windows.go index fb95b0c05..b97857b3b 100644 --- a/pkg/mount-manager/safe-mounter_windows.go +++ b/pkg/mount-manager/safe-mounter_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows /* Copyright 2020 The Kubernetes Authors. diff --git a/pkg/mount-manager/statter_windows.go b/pkg/mount-manager/statter_windows.go index 78dfbc3ef..a4c7452e2 100644 --- a/pkg/mount-manager/statter_windows.go +++ b/pkg/mount-manager/statter_windows.go @@ -1,4 +1,5 @@ -// +build windows +//go:build windows + /* Copyright 2019 The Kubernetes Authors. diff --git a/pkg/resizefs/resizefs_linux.go b/pkg/resizefs/resizefs_linux.go index 7f23a89f7..674b785cf 100644 --- a/pkg/resizefs/resizefs_linux.go +++ b/pkg/resizefs/resizefs_linux.go @@ -1,4 +1,4 @@ -// +build linux +//go:build linux /* Copyright 2017 The Kubernetes Authors. diff --git a/pkg/resizefs/resizefs_windows.go b/pkg/resizefs/resizefs_windows.go index 8065db0a6..1b39ced8d 100644 --- a/pkg/resizefs/resizefs_windows.go +++ b/pkg/resizefs/resizefs_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows /* Copyright 2020 The Kubernetes Authors.