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:
Yann Hodique
2018-11-13 14:45:34 -08:00
parent 9bbf8de245
commit 4d9c01d747
14 changed files with 5 additions and 429 deletions

View File

@@ -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",

View File

@@ -17,7 +17,7 @@ limitations under the License.
package app
import (
"golang.org/x/exp/inotify"
"github.com/sigma/go-inotify"
"k8s.io/klog"
)