Skip to content

Commit b647613

Browse files
authored
Merge pull request #827 from mauriciopoppe/go-fmt-header
Add new build constraint format in windows/linux build dependent files
2 parents 3b8e3b1 + f522e74 commit b647613

9 files changed

+10
-9
lines changed

Diff for: pkg/gce-pd-csi-driver/utils_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows
1+
//go:build !windows
22

33
/*
44
Copyright 2020 The Kubernetes Authors.

Diff for: pkg/gce-pd-csi-driver/utils_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build windows
1+
//go:build windows
22

33
/*
44
Copyright 2020 The Kubernetes Authors.

Diff for: pkg/mount-manager/safe-mounter-v1_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build windows
1+
//go:build windows
22

33
/*
44
Copyright 2021 The Kubernetes Authors.

Diff for: pkg/mount-manager/safe-mounter-v1beta_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build windows
1+
//go:build windows
22

33
/*
44
Copyright 2021 The Kubernetes Authors.

Diff for: pkg/mount-manager/safe-mounter_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux
1+
//go:build linux
22

33
/*
44
Copyright 2018 The Kubernetes Authors.

Diff for: pkg/mount-manager/safe-mounter_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build windows
1+
//go:build windows
22

33
/*
44
Copyright 2020 The Kubernetes Authors.

Diff for: pkg/mount-manager/statter_windows.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build windows
1+
//go:build windows
2+
23
/*
34
Copyright 2019 The Kubernetes Authors.
45

Diff for: pkg/resizefs/resizefs_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux
1+
//go:build linux
22

33
/*
44
Copyright 2017 The Kubernetes Authors.

Diff for: pkg/resizefs/resizefs_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build windows
1+
//go:build windows
22

33
/*
44
Copyright 2020 The Kubernetes Authors.

0 commit comments

Comments
 (0)