Skip to content

Commit 3f37463

Browse files
authored
Merge pull request #4287 from twz123/remove-duplicate-build-tag
Remove implicit build tag
2 parents 51cb4dc + 5501b8e commit 3f37463

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/apis/k0s/v1beta1/cplb_linux.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build linux
2-
31
/*
42
Copyright 2024 k0s authors
53

pkg/apis/k0s/v1beta1/cplb_notlinux.go renamed to pkg/apis/k0s/v1beta1/cplb_other.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ limitations under the License.
1919
package v1beta1
2020

2121
import (
22-
"errors"
22+
"fmt"
23+
"runtime"
2324
)
2425

2526
func getDefaultNIC() (string, error) {
26-
return "", errors.New("getDefaultNIC on Windows is not supported")
27+
return "", fmt.Errorf("getDefaultNIC on %s is not supported", runtime.GOOS)
2728
}

0 commit comments

Comments
 (0)