mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 06:32:32 +00:00
replace golang.org/x/exp/inotify with standalone library
The inotify code was removed from golang.org/x/exp several years ago. Therefore importing it from that path prevents downstream consumers from using any module that makes use of more recent features of golang.org/x/exp. This change is a followup to google/cadvisor#2060 which was merged with #70889 This fixes #68478
This commit is contained in:
@@ -129,7 +129,7 @@ go_library(
|
||||
"//vendor/k8s.io/utils/exec:go_default_library",
|
||||
] + select({
|
||||
"@io_bazel_rules_go//go/platform:linux": [
|
||||
"//vendor/golang.org/x/exp/inotify:go_default_library",
|
||||
"//vendor/github.com/sigma/go-inotify:go_default_library",
|
||||
],
|
||||
"@io_bazel_rules_go//go/platform:windows": [
|
||||
"//pkg/windows/service:go_default_library",
|
||||
|
@@ -17,7 +17,7 @@ limitations under the License.
|
||||
package app
|
||||
|
||||
import (
|
||||
"golang.org/x/exp/inotify"
|
||||
"github.com/sigma/go-inotify"
|
||||
"k8s.io/klog"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user