diff --git a/go.mod b/go.mod index 086ef231f..96353359b 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/gin-gonic/gin v1.7.2 github.com/go-logr/logr v1.2.3 github.com/go-logr/zapr v0.4.0 - github.com/google/uuid v1.1.2 + github.com/google/uuid v1.3.0 github.com/gophercloud/gophercloud v1.3.0 github.com/gophercloud/utils v0.0.0-20230418172808-6eab72e966e1 github.com/gorilla/websocket v1.5.0 @@ -16,7 +16,7 @@ require ( github.com/onsi/ginkgo v1.16.4 github.com/onsi/gomega v1.19.0 github.com/openshift/api v0.0.0 - github.com/openshift/library-go v0.0.0-20200821154433-215f00df72cc + github.com/openshift/library-go v0.0.0-20230626162119-954ade536d6d github.com/ovirt/go-ovirt v4.3.4+incompatible github.com/pkg/errors v0.9.1 github.com/pkg/profile v1.3.0 @@ -25,16 +25,16 @@ require ( github.com/prometheus/common v0.39.0 github.com/vmware/govmomi v0.23.1 go.uber.org/zap v1.19.0 - golang.org/x/net v0.4.0 + golang.org/x/net v0.8.0 gopkg.in/yaml.v2 v2.4.0 - k8s.io/api v0.26.1 - k8s.io/apiextensions-apiserver v0.23.5 - k8s.io/apimachinery v0.26.1 - k8s.io/apiserver v0.20.2 + k8s.io/api v0.27.1 + k8s.io/apiextensions-apiserver v0.27.1 + k8s.io/apimachinery v0.27.1 + k8s.io/apiserver v0.27.1 k8s.io/client-go v12.0.0+incompatible - k8s.io/component-base v0.26.0 + k8s.io/component-base v0.27.1 k8s.io/component-helpers v0.26.0 - k8s.io/klog/v2 v2.80.1 + k8s.io/klog/v2 v2.90.1 kubevirt.io/containerized-data-importer-api v1.56.0 libvirt.org/libvirt-go-xml v6.6.0+incompatible sigs.k8s.io/controller-runtime v0.8.3 @@ -49,14 +49,14 @@ require ( github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/evanphx/json-patch v4.12.0+incompatible // indirect - github.com/fsnotify/fsnotify v1.4.9 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-playground/locales v0.13.0 // indirect github.com/go-playground/universal-translator v0.17.0 // indirect github.com/go-playground/validator/v10 v10.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.2 // indirect + github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/googleapis/gnostic v0.5.5 // indirect @@ -80,9 +80,9 @@ require ( go.uber.org/multierr v1.6.0 // indirect golang.org/x/crypto v0.1.0 // indirect golang.org/x/oauth2 v0.3.0 // indirect - golang.org/x/sys v0.3.0 // indirect - golang.org/x/term v0.3.0 // indirect - golang.org/x/text v0.5.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/term v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect golang.org/x/time v0.1.0 // indirect gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect google.golang.org/appengine v1.6.7 // indirect @@ -90,8 +90,8 @@ require ( gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect - k8s.io/utils v0.0.0-20221107191617-1a15be271d1d // indirect + k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect + k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect kubevirt.io/api v0.59.1 kubevirt.io/controller-lifecycle-operator-sdk/api v0.0.0-20220329064328-f3cc58c6ed90 // indirect sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect diff --git a/go.sum b/go.sum index 03f2a3f0f..2158f604c 100644 --- a/go.sum +++ b/go.sum @@ -42,7 +42,6 @@ github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= @@ -69,7 +68,6 @@ github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnweb github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/certifi/gocertifi v0.0.0-20180905225744-ee1a9a0726d2/go.mod h1:GJKEexRPVJrBSOjoqN5VNOIKJ5Q3RViH6eu3puDRwx4= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= @@ -80,7 +78,6 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= github.com/containernetworking/cni v0.7.1/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= @@ -100,13 +97,8 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-xdr v0.0.0-20161123171359-e6a2ba005892/go.mod h1:CTDl0pzVzE5DEzZhPfvhY/9sPFMQIxaJ9VAMs9AagrE= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/docker/distribution v0.0.0-20180920194744-16128bbac47f/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw= github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/libnetwork v0.0.0-20190731215715-7f13a5c99f4b/go.mod h1:93m0aTqz6z+g32wla4l4WxTrdtvBRmVzYRkYvasA5Z8= -github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -118,13 +110,11 @@ github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.10.0+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.15.0+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful/v3 v3.8.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= -github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= @@ -133,10 +123,9 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsouza/go-dockerclient v0.0.0-20171004212419-da3951ba2e9e/go.mod h1:KpcjM623fQYE9MZiTGzKhjfxXAV9wbyX2C1cyRHfhl0= -github.com/getsentry/raven-go v0.0.0-20190513200303-c977f96e1095/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/cors v1.3.1 h1:doAsuITavI4IOcd0Y19U4B+O0dNWihRyX//nn4sEmgA= @@ -148,7 +137,6 @@ github.com/gin-gonic/gin v1.7.2 h1:Tg03T9yM2xa8j6I3Z3oqLaQRSmKvxPd6g/2HJ6zICFA= github.com/gin-gonic/gin v1.7.2/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/go-bindata/go-bindata v3.1.2+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -174,12 +162,10 @@ github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwds github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= @@ -201,7 +187,6 @@ github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/ github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= @@ -253,18 +238,12 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac/go.mod h1:P32wAyui1PQ58Oce/KYkOqQv8cVw1zAapXOl+dRFGbc= -github.com/gonum/floats v0.0.0-20181209220543-c233463c7e82/go.mod h1:PxC8OnwL11+aosOB5+iEPoV3picfs8tUpkVd0pDo+Kg= -github.com/gonum/graph v0.0.0-20170401004347-50b27dea7ebb/go.mod h1:ye018NnX1zrbOLqwBvs2HqyyTouQgnL8C+qzYk1snPY= -github.com/gonum/internal v0.0.0-20181124074243-f884aa714029/go.mod h1:Pu4dmpkhSyOzRwuXkOgAvijx4o+4YMUJJo9OvPYMkks= -github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9/go.mod h1:XA3DeT6rxh2EAE789SSiSJNqxPaC0aE9J8NTOI0Jo/A= -github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP0HCqCz+K4ts155PXIlUywf0wqN+GfPZw= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/gnostic v0.5.7-v3refs/go.mod h1:73MKFl6jIHelAJNaBGFzt3SPtZULs9dYrGFt8OiIsHQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -294,8 +273,9 @@ github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm4 github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.2.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= @@ -304,7 +284,6 @@ github.com/googleapis/gnostic v0.5.5 h1:9fHAtK0uDfpveeqqo1hkEZJcFvYXAiCN3UutL8F9 github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97DwqyJO1AENw9kA= github.com/gophercloud/utils v0.0.0-20230418172808-6eab72e966e1 h1:vJyXd9+MB5vAKxpOo4z/PDSiPgKmEyJwHIDOdV4Y0KY= github.com/gophercloud/utils v0.0.0-20230418172808-6eab72e966e1/go.mod h1:VSalo4adEk+3sNkmVJLnhHoOyOYYS8sTWLG4mv5BKto= -github.com/gorilla/mux v0.0.0-20191024121256-f395758b854c/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= @@ -325,7 +304,6 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= @@ -362,7 +340,6 @@ github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kubernetes-sigs/kube-storage-version-migrator v0.0.0-20191127225502-51849bc15f17/go.mod h1:enH0BVV+4+DAgWdwSlMefG8bBzTfVMTr1lApzdLZ/cc= github.com/kubev2v/gophercloud v0.0.0-20230629135522-9d701a75c760 h1:2+joXldqFBM5YnNAINDK8/8866ML9W1kaa34voAxwhQ= github.com/kubev2v/gophercloud v0.0.0-20230629135522-9d701a75c760/go.mod h1:aAVqcocTSXh2vYFZ1JTvx4EQmfgzxRcNupUfxZbBNDM= github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw= @@ -401,7 +378,6 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= @@ -431,17 +407,12 @@ github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAl github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw= github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/runc v0.0.0-20191031171055-b133feaeeb2e/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= github.com/openshift/api v0.0.0-20230406152840-ce21e3fe5da2 h1:lpKBKpI8or60mSEEKrpS67cevp8XaW8vfmXSwCZXKd0= github.com/openshift/api v0.0.0-20230406152840-ce21e3fe5da2/go.mod h1:ctXNyWanKEjGj8sss1KjjHQ3ENKFm33FFnS5BKaIPh4= -github.com/openshift/build-machinery-go v0.0.0-20200713135615-1f43d26dccc7/go.mod h1:b1BuldmJlbA/xYtdZvKi+7j5YGB44qJUJDZ9zwiNCfE= -github.com/openshift/client-go v0.0.0-20191125132246-f6563a70e19a/go.mod h1:6rzn+JTr7+WYS2E1TExP4gByoABxMznR6y2SnUIkmxk= github.com/openshift/custom-resource-status v1.1.2 h1:C3DL44LEbvlbItfd8mT5jWrqPfHnSOQoQf/sypqA6A4= github.com/openshift/custom-resource-status v1.1.2/go.mod h1:DB/Mf2oTeiAmVVX1gN+NEqweonAPY0TKUwADizj8+ZA= -github.com/openshift/library-go v0.0.0-20200821154433-215f00df72cc h1:qzTuJSAJX5UMDW5oTb+RQTG6c2eP02bIjFgeQLL/W8o= -github.com/openshift/library-go v0.0.0-20200821154433-215f00df72cc/go.mod h1:q7ebJwBFgDx4nP5jGhd+K9XgOIpKaNVh4RWpKmW61Gg= +github.com/openshift/library-go v0.0.0-20230626162119-954ade536d6d h1:RXJqcNJPjUFlZA27J2fbL7KVMBUvhPxWiH3YkSjrR7w= +github.com/openshift/library-go v0.0.0-20230626162119-954ade536d6d/go.mod h1:PegtilvJPBJXjJG3AV8uL1a0SAnBr6K67ShNiWVb40M= github.com/ovirt/go-ovirt v0.0.0-20210423075620-0fe653f1c0cd h1:jwvYN2BLH2JoOqX5ueldlcgwHsPdt2wx+crJSrYQ84A= github.com/ovirt/go-ovirt v0.0.0-20210423075620-0fe653f1c0cd/go.mod h1:fLDxPk1Sf64DBYtwIYxrnx3gPZ1q0xPdWdI1y9vxUaw= github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= @@ -460,7 +431,6 @@ github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prY github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= @@ -474,7 +444,6 @@ github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3d github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= github.com/prometheus/common v0.39.0 h1:oOyhkDq05hPZKItWVBkJ6g6AtGxi+fy7F4JvUV8uhsI= @@ -482,13 +451,11 @@ github.com/prometheus/common v0.39.0/go.mod h1:6XBZ7lYdLCbkAVhwRsWTZn+IN5AB9F/NX github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/robfig/cron v1.2.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= @@ -522,7 +489,7 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= +github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -532,13 +499,10 @@ github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= -github.com/vishvananda/netlink v1.0.0/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vmware/govmomi v0.23.1 h1:vU09hxnNR/I7e+4zCJvW+5vHu5dO64Aoe2Lw7Yi/KRg= github.com/vmware/govmomi v0.23.1/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1/go.mod h1:QcJo0QPSfTONNIgpN5RA8prR7fF8nkF6cTWTcNerRO8= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -549,7 +513,6 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -go.etcd.io/etcd v0.5.0-alpha.5.0.20200716221620-18dfb9cca345/go.mod h1:skWido08r9w6Lq/w70DO5XYIKMu4QFu1+4VsqLQuJy8= go.etcd.io/etcd v0.5.0-alpha.5.0.20200819165624-17cef6e3e9d5/go.mod h1:skWido08r9w6Lq/w70DO5XYIKMu4QFu1+4VsqLQuJy8= go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= @@ -579,7 +542,6 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= @@ -620,7 +582,6 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -654,7 +615,6 @@ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= @@ -667,10 +627,8 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.4.0 h1:Q5QPcMlvfxFTAPV0+07Xz/MpK9NTXu2VDUuy0FeMfaU= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -706,7 +664,6 @@ golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -750,17 +707,16 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ= -golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.3.0 h1:qoo4akIqOcDME5bhc/NgxUdovd6BSS2uMsVjB56q1xI= -golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= +golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -769,8 +725,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= -golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -833,8 +789,7 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -923,7 +878,6 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -936,7 +890,6 @@ gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8 gopkg.in/go-playground/validator.v9 v9.29.1/go.mod h1:+c9/zcJMFNgbLvly1L1V+PpxWdVbfP1avr/N00E2vyQ= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ldap.v2 v2.5.1/go.mod h1:oI0cpe/D7HRtBQl8aTg+ZmzFUAvu4lsv3eLXMLGFxWk= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= @@ -986,15 +939,13 @@ k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8 k8s.io/gengo v0.0.0-20211129171323-c02415ce4185/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog/v2 v2.5.0 h1:8mOnjf1RmUPW6KRqQCfYSZq/K20Unmp3IhuZUhxl8KI= k8s.io/klog/v2 v2.5.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= -k8s.io/kube-aggregator v0.19.3/go.mod h1:5KTkDBxx4YiAYUuqTGmwjH7v54hRdrykqzcPiF8hPJc= k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c= k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= -k8s.io/utils v0.0.0-20200720150651-0bdb4ca86cbc/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20221107191617-1a15be271d1d h1:0Smp/HP1OH4Rvhe+4B8nWGERtlqAGSftbSbbmm45oFs= -k8s.io/utils v0.0.0-20221107191617-1a15be271d1d/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk= +k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= kubevirt.io/api v0.59.1 h1:HIGi/v/iuwOn7mBNrG7pQbrhfbW+z5DRKbHANKxn8Hg= kubevirt.io/api v0.59.1/go.mod h1:zts/6mioR8vGgvYmQ17Cb9XsUR9e/WjJcdokmrE38wY= kubevirt.io/containerized-data-importer-api v1.56.0 h1:Ehc6CbT3mG2uz+9s3t2N4HnpdK5GfQMt2DCCXCz2sDI= @@ -1009,7 +960,6 @@ rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.9/go.mod h1:dzAXnQbTRyDlZPJX2SUPEqvnB+j7AJjtlox7PEwigU0= sigs.k8s.io/controller-runtime v0.10.0 h1:HgyZmMpjUOrtkaFtCnfxsR1bGRuFoAczSNbn2MoKj5U= sigs.k8s.io/controller-runtime v0.10.0/go.mod h1:GCdh6kqV6IY4LK0JLwX0Zm6g233RtVGdb/f0+KSfprg= -sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= sigs.k8s.io/structured-merge-diff/v4 v4.1.2/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= @@ -1019,4 +969,3 @@ sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= -vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI= diff --git a/vendor/cloud.google.com/go/compute/metadata/BUILD.bazel b/vendor/cloud.google.com/go/compute/metadata/BUILD.bazel deleted file mode 100644 index 99cd08a26..000000000 --- a/vendor/cloud.google.com/go/compute/metadata/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "metadata", - srcs = ["metadata.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/cloud.google.com/go/compute/metadata", - importpath = "cloud.google.com/go/compute/metadata", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/beorn7/perks/quantile/BUILD.bazel b/vendor/github.com/beorn7/perks/quantile/BUILD.bazel deleted file mode 100644 index 51f76d340..000000000 --- a/vendor/github.com/beorn7/perks/quantile/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "quantile", - srcs = ["stream.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/beorn7/perks/quantile", - importpath = "github.com/beorn7/perks/quantile", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/blang/semver/BUILD.bazel b/vendor/github.com/blang/semver/BUILD.bazel deleted file mode 100644 index f3cf7efb9..000000000 --- a/vendor/github.com/blang/semver/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "semver", - srcs = [ - "json.go", - "range.go", - "semver.go", - "sort.go", - "sql.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/blang/semver", - importpath = "github.com/blang/semver", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/cespare/xxhash/v2/BUILD.bazel b/vendor/github.com/cespare/xxhash/v2/BUILD.bazel deleted file mode 100644 index f710101e7..000000000 --- a/vendor/github.com/cespare/xxhash/v2/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "xxhash", - srcs = [ - "xxhash.go", - "xxhash_amd64.go", - "xxhash_amd64.s", - "xxhash_other.go", - "xxhash_unsafe.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/cespare/xxhash/v2", - importpath = "github.com/cespare/xxhash/v2", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/davecgh/go-spew/spew/BUILD.bazel b/vendor/github.com/davecgh/go-spew/spew/BUILD.bazel deleted file mode 100644 index 18b4b944e..000000000 --- a/vendor/github.com/davecgh/go-spew/spew/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spew", - srcs = [ - "bypass.go", - "bypasssafe.go", - "common.go", - "config.go", - "doc.go", - "dump.go", - "format.go", - "spew.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/davecgh/go-spew/spew", - importpath = "github.com/davecgh/go-spew/spew", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/evanphx/json-patch/BUILD.bazel b/vendor/github.com/evanphx/json-patch/BUILD.bazel deleted file mode 100644 index 2c9cd2f40..000000000 --- a/vendor/github.com/evanphx/json-patch/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "json-patch", - srcs = [ - "errors.go", - "merge.go", - "patch.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/evanphx/json-patch", - importpath = "github.com/evanphx/json-patch", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/pkg/errors"], -) diff --git a/vendor/github.com/fsnotify/fsnotify/.gitignore b/vendor/github.com/fsnotify/fsnotify/.gitignore index 4cd0cbaf4..1d89d85ce 100644 --- a/vendor/github.com/fsnotify/fsnotify/.gitignore +++ b/vendor/github.com/fsnotify/fsnotify/.gitignore @@ -1,6 +1,6 @@ -# Setup a Global .gitignore for OS and editor generated files: -# https://help.github.com/articles/ignoring-files -# git config --global core.excludesfile ~/.gitignore_global +# go test -c output +*.test +*.test.exe -.vagrant -*.sublime-project +# Output of go build ./cmd/fsnotify +/fsnotify diff --git a/vendor/github.com/fsnotify/fsnotify/.mailmap b/vendor/github.com/fsnotify/fsnotify/.mailmap new file mode 100644 index 000000000..a04f2907f --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/.mailmap @@ -0,0 +1,2 @@ +Chris Howey +Nathan Youngman <4566+nathany@users.noreply.github.com> diff --git a/vendor/github.com/fsnotify/fsnotify/.travis.yml b/vendor/github.com/fsnotify/fsnotify/.travis.yml deleted file mode 100644 index a9c30165c..000000000 --- a/vendor/github.com/fsnotify/fsnotify/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -sudo: false -language: go - -go: - - "stable" - - "1.11.x" - - "1.10.x" - - "1.9.x" - -matrix: - include: - - go: "stable" - env: GOLINT=true - allow_failures: - - go: tip - fast_finish: true - - -before_install: - - if [ ! -z "${GOLINT}" ]; then go get -u golang.org/x/lint/golint; fi - -script: - - go test --race ./... - -after_script: - - test -z "$(gofmt -s -l -w . | tee /dev/stderr)" - - if [ ! -z "${GOLINT}" ]; then echo running golint; golint --set_exit_status ./...; else echo skipping golint; fi - - go vet ./... - -os: - - linux - - osx - - windows - -notifications: - email: false diff --git a/vendor/github.com/fsnotify/fsnotify/AUTHORS b/vendor/github.com/fsnotify/fsnotify/AUTHORS deleted file mode 100644 index 5ab5d41c5..000000000 --- a/vendor/github.com/fsnotify/fsnotify/AUTHORS +++ /dev/null @@ -1,52 +0,0 @@ -# Names should be added to this file as -# Name or Organization -# The email address is not required for organizations. - -# You can update this list using the following command: -# -# $ git shortlog -se | awk '{print $2 " " $3 " " $4}' - -# Please keep the list sorted. - -Aaron L -Adrien Bustany -Amit Krishnan -Anmol Sethi -Bjørn Erik Pedersen -Bruno Bigras -Caleb Spare -Case Nelson -Chris Howey -Christoffer Buchholz -Daniel Wagner-Hall -Dave Cheney -Evan Phoenix -Francisco Souza -Hari haran -John C Barstow -Kelvin Fo -Ken-ichirou MATSUZAWA -Matt Layher -Nathan Youngman -Nickolai Zeldovich -Patrick -Paul Hammond -Pawel Knap -Pieter Droogendijk -Pursuit92 -Riku Voipio -Rob Figueiredo -Rodrigo Chiossi -Slawek Ligus -Soge Zhang -Tiffany Jernigan -Tilak Sharma -Tom Payne -Travis Cline -Tudor Golubenco -Vahe Khachikyan -Yukang -bronze1man -debrando -henrikedwards -铁哥 diff --git a/vendor/github.com/fsnotify/fsnotify/BUILD.bazel b/vendor/github.com/fsnotify/fsnotify/BUILD.bazel deleted file mode 100644 index 7c8eed0ed..000000000 --- a/vendor/github.com/fsnotify/fsnotify/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "fsnotify", - srcs = [ - "fen.go", - "fsnotify.go", - "inotify.go", - "inotify_poller.go", - "kqueue.go", - "open_mode_bsd.go", - "open_mode_darwin.go", - "windows.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/fsnotify/fsnotify", - importpath = "github.com/fsnotify/fsnotify", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:android": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md b/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md index be4d7ea2c..77f9593bd 100644 --- a/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +++ b/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md @@ -1,6 +1,159 @@ # Changelog -## v1.4.7 / 2018-01-09 +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +Nothing yet. + +## [1.6.0] - 2022-10-13 + +This version of fsnotify needs Go 1.16 (this was already the case since 1.5.1, +but not documented). It also increases the minimum Linux version to 2.6.32. + +### Additions + +- all: add `Event.Has()` and `Op.Has()` ([#477]) + + This makes checking events a lot easier; for example: + + if event.Op&Write == Write && !(event.Op&Remove == Remove) { + } + + Becomes: + + if event.Has(Write) && !event.Has(Remove) { + } + +- all: add cmd/fsnotify ([#463]) + + A command-line utility for testing and some examples. + +### Changes and fixes + +- inotify: don't ignore events for files that don't exist ([#260], [#470]) + + Previously the inotify watcher would call `os.Lstat()` to check if a file + still exists before emitting events. + + This was inconsistent with other platforms and resulted in inconsistent event + reporting (e.g. when a file is quickly removed and re-created), and generally + a source of confusion. It was added in 2013 to fix a memory leak that no + longer exists. + +- all: return `ErrNonExistentWatch` when `Remove()` is called on a path that's + not watched ([#460]) + +- inotify: replace epoll() with non-blocking inotify ([#434]) + + Non-blocking inotify was not generally available at the time this library was + written in 2014, but now it is. As a result, the minimum Linux version is + bumped from 2.6.27 to 2.6.32. This hugely simplifies the code and is faster. + +- kqueue: don't check for events every 100ms ([#480]) + + The watcher would wake up every 100ms, even when there was nothing to do. Now + it waits until there is something to do. + +- macos: retry opening files on EINTR ([#475]) + +- kqueue: skip unreadable files ([#479]) + + kqueue requires a file descriptor for every file in a directory; this would + fail if a file was unreadable by the current user. Now these files are simply + skipped. + +- windows: fix renaming a watched directory if the parent is also watched ([#370]) + +- windows: increase buffer size from 4K to 64K ([#485]) + +- windows: close file handle on Remove() ([#288]) + +- kqueue: put pathname in the error if watching a file fails ([#471]) + +- inotify, windows: calling Close() more than once could race ([#465]) + +- kqueue: improve Close() performance ([#233]) + +- all: various documentation additions and clarifications. + +[#233]: https://github.com/fsnotify/fsnotify/pull/233 +[#260]: https://github.com/fsnotify/fsnotify/pull/260 +[#288]: https://github.com/fsnotify/fsnotify/pull/288 +[#370]: https://github.com/fsnotify/fsnotify/pull/370 +[#434]: https://github.com/fsnotify/fsnotify/pull/434 +[#460]: https://github.com/fsnotify/fsnotify/pull/460 +[#463]: https://github.com/fsnotify/fsnotify/pull/463 +[#465]: https://github.com/fsnotify/fsnotify/pull/465 +[#470]: https://github.com/fsnotify/fsnotify/pull/470 +[#471]: https://github.com/fsnotify/fsnotify/pull/471 +[#475]: https://github.com/fsnotify/fsnotify/pull/475 +[#477]: https://github.com/fsnotify/fsnotify/pull/477 +[#479]: https://github.com/fsnotify/fsnotify/pull/479 +[#480]: https://github.com/fsnotify/fsnotify/pull/480 +[#485]: https://github.com/fsnotify/fsnotify/pull/485 + +## [1.5.4] - 2022-04-25 + +* Windows: add missing defer to `Watcher.WatchList` [#447](https://github.com/fsnotify/fsnotify/pull/447) +* go.mod: use latest x/sys [#444](https://github.com/fsnotify/fsnotify/pull/444) +* Fix compilation for OpenBSD [#443](https://github.com/fsnotify/fsnotify/pull/443) + +## [1.5.3] - 2022-04-22 + +* This version is retracted. An incorrect branch is published accidentally [#445](https://github.com/fsnotify/fsnotify/issues/445) + +## [1.5.2] - 2022-04-21 + +* Add a feature to return the directories and files that are being monitored [#374](https://github.com/fsnotify/fsnotify/pull/374) +* Fix potential crash on windows if `raw.FileNameLength` exceeds `syscall.MAX_PATH` [#361](https://github.com/fsnotify/fsnotify/pull/361) +* Allow build on unsupported GOOS [#424](https://github.com/fsnotify/fsnotify/pull/424) +* Don't set `poller.fd` twice in `newFdPoller` [#406](https://github.com/fsnotify/fsnotify/pull/406) +* fix go vet warnings: call to `(*T).Fatalf` from a non-test goroutine [#416](https://github.com/fsnotify/fsnotify/pull/416) + +## [1.5.1] - 2021-08-24 + +* Revert Add AddRaw to not follow symlinks [#394](https://github.com/fsnotify/fsnotify/pull/394) + +## [1.5.0] - 2021-08-20 + +* Go: Increase minimum required version to Go 1.12 [#381](https://github.com/fsnotify/fsnotify/pull/381) +* Feature: Add AddRaw method which does not follow symlinks when adding a watch [#289](https://github.com/fsnotify/fsnotify/pull/298) +* Windows: Follow symlinks by default like on all other systems [#289](https://github.com/fsnotify/fsnotify/pull/289) +* CI: Use GitHub Actions for CI and cover go 1.12-1.17 + [#378](https://github.com/fsnotify/fsnotify/pull/378) + [#381](https://github.com/fsnotify/fsnotify/pull/381) + [#385](https://github.com/fsnotify/fsnotify/pull/385) +* Go 1.14+: Fix unsafe pointer conversion [#325](https://github.com/fsnotify/fsnotify/pull/325) + +## [1.4.9] - 2020-03-11 + +* Move example usage to the readme #329. This may resolve #328. + +## [1.4.8] - 2020-03-10 + +* CI: test more go versions (@nathany 1d13583d846ea9d66dcabbfefbfb9d8e6fb05216) +* Tests: Queued inotify events could have been read by the test before max_queued_events was hit (@matthias-stone #265) +* Tests: t.Fatalf -> t.Errorf in go routines (@gdey #266) +* CI: Less verbosity (@nathany #267) +* Tests: Darwin: Exchangedata is deprecated on 10.13 (@nathany #267) +* Tests: Check if channels are closed in the example (@alexeykazakov #244) +* CI: Only run golint on latest version of go and fix issues (@cpuguy83 #284) +* CI: Add windows to travis matrix (@cpuguy83 #284) +* Docs: Remover appveyor badge (@nathany 11844c0959f6fff69ba325d097fce35bd85a8e93) +* Linux: create epoll and pipe fds with close-on-exec (@JohannesEbke #219) +* Linux: open files with close-on-exec (@linxiulei #273) +* Docs: Plan to support fanotify (@nathany ab058b44498e8b7566a799372a39d150d9ea0119 ) +* Project: Add go.mod (@nathany #309) +* Project: Revise editor config (@nathany #309) +* Project: Update copyright for 2019 (@nathany #309) +* CI: Drop go1.8 from CI matrix (@nathany #309) +* Docs: Updating the FAQ section for supportability with NFS & FUSE filesystems (@Pratik32 4bf2d1fec78374803a39307bfb8d340688f4f28e ) + +## [1.4.7] - 2018-01-09 * BSD/macOS: Fix possible deadlock on closing the watcher on kqueue (thanks @nhooyr and @glycerine) * Tests: Fix missing verb on format string (thanks @rchiossi) @@ -10,62 +163,62 @@ * Linux: Properly handle inotify's IN_Q_OVERFLOW event (thanks @zeldovich) * Docs: replace references to OS X with macOS -## v1.4.2 / 2016-10-10 +## [1.4.2] - 2016-10-10 * Linux: use InotifyInit1 with IN_CLOEXEC to stop leaking a file descriptor to a child process when using fork/exec [#178](https://github.com/fsnotify/fsnotify/pull/178) (thanks @pattyshack) -## v1.4.1 / 2016-10-04 +## [1.4.1] - 2016-10-04 * Fix flaky inotify stress test on Linux [#177](https://github.com/fsnotify/fsnotify/pull/177) (thanks @pattyshack) -## v1.4.0 / 2016-10-01 +## [1.4.0] - 2016-10-01 * add a String() method to Event.Op [#165](https://github.com/fsnotify/fsnotify/pull/165) (thanks @oozie) -## v1.3.1 / 2016-06-28 +## [1.3.1] - 2016-06-28 * Windows: fix for double backslash when watching the root of a drive [#151](https://github.com/fsnotify/fsnotify/issues/151) (thanks @brunoqc) -## v1.3.0 / 2016-04-19 +## [1.3.0] - 2016-04-19 * Support linux/arm64 by [patching](https://go-review.googlesource.com/#/c/21971/) x/sys/unix and switching to to it from syscall (thanks @suihkulokki) [#135](https://github.com/fsnotify/fsnotify/pull/135) -## v1.2.10 / 2016-03-02 +## [1.2.10] - 2016-03-02 * Fix golint errors in windows.go [#121](https://github.com/fsnotify/fsnotify/pull/121) (thanks @tiffanyfj) -## v1.2.9 / 2016-01-13 +## [1.2.9] - 2016-01-13 kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsnotify/pull/111) (thanks @bep) -## v1.2.8 / 2015-12-17 +## [1.2.8] - 2015-12-17 * kqueue: fix race condition in Close [#105](https://github.com/fsnotify/fsnotify/pull/105) (thanks @djui for reporting the issue and @ppknap for writing a failing test) * inotify: fix race in test * enable race detection for continuous integration (Linux, Mac, Windows) -## v1.2.5 / 2015-10-17 +## [1.2.5] - 2015-10-17 * inotify: use epoll_create1 for arm64 support (requires Linux 2.6.27 or later) [#100](https://github.com/fsnotify/fsnotify/pull/100) (thanks @suihkulokki) * inotify: fix path leaks [#73](https://github.com/fsnotify/fsnotify/pull/73) (thanks @chamaken) * kqueue: watch for rename events on subdirectories [#83](https://github.com/fsnotify/fsnotify/pull/83) (thanks @guotie) * kqueue: avoid infinite loops from symlinks cycles [#101](https://github.com/fsnotify/fsnotify/pull/101) (thanks @illicitonion) -## v1.2.1 / 2015-10-14 +## [1.2.1] - 2015-10-14 * kqueue: don't watch named pipes [#98](https://github.com/fsnotify/fsnotify/pull/98) (thanks @evanphx) -## v1.2.0 / 2015-02-08 +## [1.2.0] - 2015-02-08 * inotify: use epoll to wake up readEvents [#66](https://github.com/fsnotify/fsnotify/pull/66) (thanks @PieterD) * inotify: closing watcher should now always shut down goroutine [#63](https://github.com/fsnotify/fsnotify/pull/63) (thanks @PieterD) * kqueue: close kqueue after removing watches, fixes [#59](https://github.com/fsnotify/fsnotify/issues/59) -## v1.1.1 / 2015-02-05 +## [1.1.1] - 2015-02-05 * inotify: Retry read on EINTR [#61](https://github.com/fsnotify/fsnotify/issues/61) (thanks @PieterD) -## v1.1.0 / 2014-12-12 +## [1.1.0] - 2014-12-12 * kqueue: rework internals [#43](https://github.com/fsnotify/fsnotify/pull/43) * add low-level functions @@ -77,22 +230,22 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn * kqueue: fix regression in rework causing subdirectories to be watched [#48](https://github.com/fsnotify/fsnotify/issues/48) * kqueue: cleanup internal watch before sending remove event [#51](https://github.com/fsnotify/fsnotify/issues/51) -## v1.0.4 / 2014-09-07 +## [1.0.4] - 2014-09-07 * kqueue: add dragonfly to the build tags. * Rename source code files, rearrange code so exported APIs are at the top. * Add done channel to example code. [#37](https://github.com/fsnotify/fsnotify/pull/37) (thanks @chenyukang) -## v1.0.3 / 2014-08-19 +## [1.0.3] - 2014-08-19 * [Fix] Windows MOVED_TO now translates to Create like on BSD and Linux. [#36](https://github.com/fsnotify/fsnotify/issues/36) -## v1.0.2 / 2014-08-17 +## [1.0.2] - 2014-08-17 * [Fix] Missing create events on macOS. [#14](https://github.com/fsnotify/fsnotify/issues/14) (thanks @zhsso) * [Fix] Make ./path and path equivalent. (thanks @zhsso) -## v1.0.0 / 2014-08-15 +## [1.0.0] - 2014-08-15 * [API] Remove AddWatch on Windows, use Add. * Improve documentation for exported identifiers. [#30](https://github.com/fsnotify/fsnotify/issues/30) @@ -146,51 +299,51 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn * no tests for the current implementation * not fully implemented on Windows [#93](https://github.com/howeyc/fsnotify/issues/93#issuecomment-39285195) -## v0.9.3 / 2014-12-31 +## [0.9.3] - 2014-12-31 * kqueue: cleanup internal watch before sending remove event [#51](https://github.com/fsnotify/fsnotify/issues/51) -## v0.9.2 / 2014-08-17 +## [0.9.2] - 2014-08-17 * [Backport] Fix missing create events on macOS. [#14](https://github.com/fsnotify/fsnotify/issues/14) (thanks @zhsso) -## v0.9.1 / 2014-06-12 +## [0.9.1] - 2014-06-12 * Fix data race on kevent buffer (thanks @tilaks) [#98](https://github.com/howeyc/fsnotify/pull/98) -## v0.9.0 / 2014-01-17 +## [0.9.0] - 2014-01-17 * IsAttrib() for events that only concern a file's metadata [#79][] (thanks @abustany) * [Fix] kqueue: fix deadlock [#77][] (thanks @cespare) * [NOTICE] Development has moved to `code.google.com/p/go.exp/fsnotify` in preparation for inclusion in the Go standard library. -## v0.8.12 / 2013-11-13 +## [0.8.12] - 2013-11-13 * [API] Remove FD_SET and friends from Linux adapter -## v0.8.11 / 2013-11-02 +## [0.8.11] - 2013-11-02 * [Doc] Add Changelog [#72][] (thanks @nathany) * [Doc] Spotlight and double modify events on macOS [#62][] (reported by @paulhammond) -## v0.8.10 / 2013-10-19 +## [0.8.10] - 2013-10-19 * [Fix] kqueue: remove file watches when parent directory is removed [#71][] (reported by @mdwhatcott) * [Fix] kqueue: race between Close and readEvents [#70][] (reported by @bernerdschaefer) * [Doc] specify OS-specific limits in README (thanks @debrando) -## v0.8.9 / 2013-09-08 +## [0.8.9] - 2013-09-08 * [Doc] Contributing (thanks @nathany) * [Doc] update package path in example code [#63][] (thanks @paulhammond) * [Doc] GoCI badge in README (Linux only) [#60][] * [Doc] Cross-platform testing with Vagrant [#59][] (thanks @nathany) -## v0.8.8 / 2013-06-17 +## [0.8.8] - 2013-06-17 * [Fix] Windows: handle `ERROR_MORE_DATA` on Windows [#49][] (thanks @jbowtie) -## v0.8.7 / 2013-06-03 +## [0.8.7] - 2013-06-03 * [API] Make syscall flags internal * [Fix] inotify: ignore event changes @@ -198,74 +351,74 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn * [Fix] tests on Windows * lower case error messages -## v0.8.6 / 2013-05-23 +## [0.8.6] - 2013-05-23 * kqueue: Use EVT_ONLY flag on Darwin * [Doc] Update README with full example -## v0.8.5 / 2013-05-09 +## [0.8.5] - 2013-05-09 * [Fix] inotify: allow monitoring of "broken" symlinks (thanks @tsg) -## v0.8.4 / 2013-04-07 +## [0.8.4] - 2013-04-07 * [Fix] kqueue: watch all file events [#40][] (thanks @ChrisBuchholz) -## v0.8.3 / 2013-03-13 +## [0.8.3] - 2013-03-13 * [Fix] inoitfy/kqueue memory leak [#36][] (reported by @nbkolchin) * [Fix] kqueue: use fsnFlags for watching a directory [#33][] (reported by @nbkolchin) -## v0.8.2 / 2013-02-07 +## [0.8.2] - 2013-02-07 * [Doc] add Authors * [Fix] fix data races for map access [#29][] (thanks @fsouza) -## v0.8.1 / 2013-01-09 +## [0.8.1] - 2013-01-09 * [Fix] Windows path separators * [Doc] BSD License -## v0.8.0 / 2012-11-09 +## [0.8.0] - 2012-11-09 * kqueue: directory watching improvements (thanks @vmirage) * inotify: add `IN_MOVED_TO` [#25][] (requested by @cpisto) * [Fix] kqueue: deleting watched directory [#24][] (reported by @jakerr) -## v0.7.4 / 2012-10-09 +## [0.7.4] - 2012-10-09 * [Fix] inotify: fixes from https://codereview.appspot.com/5418045/ (ugorji) * [Fix] kqueue: preserve watch flags when watching for delete [#21][] (reported by @robfig) * [Fix] kqueue: watch the directory even if it isn't a new watch (thanks @robfig) * [Fix] kqueue: modify after recreation of file -## v0.7.3 / 2012-09-27 +## [0.7.3] - 2012-09-27 * [Fix] kqueue: watch with an existing folder inside the watched folder (thanks @vmirage) * [Fix] kqueue: no longer get duplicate CREATE events -## v0.7.2 / 2012-09-01 +## [0.7.2] - 2012-09-01 * kqueue: events for created directories -## v0.7.1 / 2012-07-14 +## [0.7.1] - 2012-07-14 * [Fix] for renaming files -## v0.7.0 / 2012-07-02 +## [0.7.0] - 2012-07-02 * [Feature] FSNotify flags * [Fix] inotify: Added file name back to event path -## v0.6.0 / 2012-06-06 +## [0.6.0] - 2012-06-06 * kqueue: watch files after directory created (thanks @tmc) -## v0.5.1 / 2012-05-22 +## [0.5.1] - 2012-05-22 * [Fix] inotify: remove all watches before Close() -## v0.5.0 / 2012-05-03 +## [0.5.0] - 2012-05-03 * [API] kqueue: return errors during watch instead of sending over channel * kqueue: match symlink behavior on Linux @@ -273,22 +426,22 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn * [Fix] kqueue: handle EINTR (reported by @robfig) * [Doc] Godoc example [#1][] (thanks @davecheney) -## v0.4.0 / 2012-03-30 +## [0.4.0] - 2012-03-30 * Go 1 released: build with go tool * [Feature] Windows support using winfsnotify * Windows does not have attribute change notifications * Roll attribute notifications into IsModify -## v0.3.0 / 2012-02-19 +## [0.3.0] - 2012-02-19 * kqueue: add files when watch directory -## v0.2.0 / 2011-12-30 +## [0.2.0] - 2011-12-30 * update to latest Go weekly code -## v0.1.0 / 2011-10-19 +## [0.1.0] - 2011-10-19 * kqueue: add watch on file creation to match inotify * kqueue: create file event diff --git a/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md b/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md index 828a60b24..ea379759d 100644 --- a/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +++ b/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md @@ -1,77 +1,26 @@ -# Contributing +Thank you for your interest in contributing to fsnotify! We try to review and +merge PRs in a reasonable timeframe, but please be aware that: -## Issues +- To avoid "wasted" work, please discus changes on the issue tracker first. You + can just send PRs, but they may end up being rejected for one reason or the + other. -* Request features and report bugs using the [GitHub Issue Tracker](https://github.com/fsnotify/fsnotify/issues). -* Please indicate the platform you are using fsnotify on. -* A code example to reproduce the problem is appreciated. +- fsnotify is a cross-platform library, and changes must work reasonably well on + all supported platforms. -## Pull Requests +- Changes will need to be compatible; old code should still compile, and the + runtime behaviour can't change in ways that are likely to lead to problems for + users. -### Contributor License Agreement +Testing +------- +Just `go test ./...` runs all the tests; the CI runs this on all supported +platforms. Testing different platforms locally can be done with something like +[goon] or [Vagrant], but this isn't super-easy to set up at the moment. -fsnotify is derived from code in the [golang.org/x/exp](https://godoc.org/golang.org/x/exp) package and it may be included [in the standard library](https://github.com/fsnotify/fsnotify/issues/1) in the future. Therefore fsnotify carries the same [LICENSE](https://github.com/fsnotify/fsnotify/blob/master/LICENSE) as Go. Contributors retain their copyright, so you need to fill out a short form before we can accept your contribution: [Google Individual Contributor License Agreement](https://developers.google.com/open-source/cla/individual). +Use the `-short` flag to make the "stress test" run faster. -Please indicate that you have signed the CLA in your pull request. -### How fsnotify is Developed - -* Development is done on feature branches. -* Tests are run on BSD, Linux, macOS and Windows. -* Pull requests are reviewed and [applied to master][am] using [hub][]. - * Maintainers may modify or squash commits rather than asking contributors to. -* To issue a new release, the maintainers will: - * Update the CHANGELOG - * Tag a version, which will become available through gopkg.in. - -### How to Fork - -For smooth sailing, always use the original import path. Installing with `go get` makes this easy. - -1. Install from GitHub (`go get -u github.com/fsnotify/fsnotify`) -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Ensure everything works and the tests pass (see below) -4. Commit your changes (`git commit -am 'Add some feature'`) - -Contribute upstream: - -1. Fork fsnotify on GitHub -2. Add your remote (`git remote add fork git@github.com:mycompany/repo.git`) -3. Push to the branch (`git push fork my-new-feature`) -4. Create a new Pull Request on GitHub - -This workflow is [thoroughly explained by Katrina Owen](https://splice.com/blog/contributing-open-source-git-repositories-go/). - -### Testing - -fsnotify uses build tags to compile different code on Linux, BSD, macOS, and Windows. - -Before doing a pull request, please do your best to test your changes on multiple platforms, and list which platforms you were able/unable to test on. - -To aid in cross-platform testing there is a Vagrantfile for Linux and BSD. - -* Install [Vagrant](http://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/) -* Setup [Vagrant Gopher](https://github.com/nathany/vagrant-gopher) in your `src` folder. -* Run `vagrant up` from the project folder. You can also setup just one box with `vagrant up linux` or `vagrant up bsd` (note: the BSD box doesn't support Windows hosts at this time, and NFS may prompt for your host OS password) -* Once setup, you can run the test suite on a given OS with a single command `vagrant ssh linux -c 'cd fsnotify/fsnotify; go test'`. -* When you're done, you will want to halt or destroy the Vagrant boxes. - -Notice: fsnotify file system events won't trigger in shared folders. The tests get around this limitation by using the /tmp directory. - -Right now there is no equivalent solution for Windows and macOS, but there are Windows VMs [freely available from Microsoft](http://www.modern.ie/en-us/virtualization-tools#downloads). - -### Maintainers - -Help maintaining fsnotify is welcome. To be a maintainer: - -* Submit a pull request and sign the CLA as above. -* You must be able to run the test suite on Mac, Windows, Linux and BSD. - -To keep master clean, the fsnotify project uses the "apply mail" workflow outlined in Nathaniel Talbott's post ["Merge pull request" Considered Harmful][am]. This requires installing [hub][]. - -All code changes should be internal pull requests. - -Releases are tagged using [Semantic Versioning](http://semver.org/). - -[hub]: https://github.com/github/hub -[am]: http://blog.spreedly.com/2014/06/24/merge-pull-request-considered-harmful/#.VGa5yZPF_Zs +[goon]: https://github.com/arp242/goon +[Vagrant]: https://www.vagrantup.com/ +[integration_test.go]: /integration_test.go diff --git a/vendor/github.com/fsnotify/fsnotify/LICENSE b/vendor/github.com/fsnotify/fsnotify/LICENSE index e180c8fb0..fb03ade75 100644 --- a/vendor/github.com/fsnotify/fsnotify/LICENSE +++ b/vendor/github.com/fsnotify/fsnotify/LICENSE @@ -1,28 +1,25 @@ -Copyright (c) 2012 The Go Authors. All rights reserved. -Copyright (c) 2012-2019 fsnotify Authors. All rights reserved. +Copyright © 2012 The Go Authors. All rights reserved. +Copyright © fsnotify Authors. All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. +* Neither the name of Google Inc. nor the names of its contributors may be used + to endorse or promote products derived from this software without specific + prior written permission. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/fsnotify/fsnotify/README.md b/vendor/github.com/fsnotify/fsnotify/README.md index b2629e522..d4e6080fe 100644 --- a/vendor/github.com/fsnotify/fsnotify/README.md +++ b/vendor/github.com/fsnotify/fsnotify/README.md @@ -1,130 +1,161 @@ -# File system notifications for Go +fsnotify is a Go library to provide cross-platform filesystem notifications on +Windows, Linux, macOS, and BSD systems. -[![GoDoc](https://godoc.org/github.com/fsnotify/fsnotify?status.svg)](https://godoc.org/github.com/fsnotify/fsnotify) [![Go Report Card](https://goreportcard.com/badge/github.com/fsnotify/fsnotify)](https://goreportcard.com/report/github.com/fsnotify/fsnotify) +Go 1.16 or newer is required; the full documentation is at +https://pkg.go.dev/github.com/fsnotify/fsnotify -fsnotify utilizes [golang.org/x/sys](https://godoc.org/golang.org/x/sys) rather than `syscall` from the standard library. Ensure you have the latest version installed by running: +**It's best to read the documentation at pkg.go.dev, as it's pinned to the last +released version, whereas this README is for the last development version which +may include additions/changes.** -```console -go get -u golang.org/x/sys/... -``` - -Cross platform: Windows, Linux, BSD and macOS. - -| Adapter | OS | Status | -| --------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| inotify | Linux 2.6.27 or later, Android\* | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) | -| kqueue | BSD, macOS, iOS\* | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) | -| ReadDirectoryChangesW | Windows | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) | -| FSEvents | macOS | [Planned](https://github.com/fsnotify/fsnotify/issues/11) | -| FEN | Solaris 11 | [In Progress](https://github.com/fsnotify/fsnotify/issues/12) | -| fanotify | Linux 2.6.37+ | [Planned](https://github.com/fsnotify/fsnotify/issues/114) | -| USN Journals | Windows | [Maybe](https://github.com/fsnotify/fsnotify/issues/53) | -| Polling | *All* | [Maybe](https://github.com/fsnotify/fsnotify/issues/9) | - -\* Android and iOS are untested. - -Please see [the documentation](https://godoc.org/github.com/fsnotify/fsnotify) and consult the [FAQ](#faq) for usage information. - -## API stability +--- -fsnotify is a fork of [howeyc/fsnotify](https://godoc.org/github.com/howeyc/fsnotify) with a new API as of v1.0. The API is based on [this design document](http://goo.gl/MrYxyA). +Platform support: -All [releases](https://github.com/fsnotify/fsnotify/releases) are tagged based on [Semantic Versioning](http://semver.org/). Further API changes are [planned](https://github.com/fsnotify/fsnotify/milestones), and will be tagged with a new major revision number. +| Adapter | OS | Status | +| --------------------- | ---------------| -------------------------------------------------------------| +| inotify | Linux 2.6.32+ | Supported | +| kqueue | BSD, macOS | Supported | +| ReadDirectoryChangesW | Windows | Supported | +| FSEvents | macOS | [Planned](https://github.com/fsnotify/fsnotify/issues/11) | +| FEN | Solaris 11 | [In Progress](https://github.com/fsnotify/fsnotify/pull/371) | +| fanotify | Linux 5.9+ | [Maybe](https://github.com/fsnotify/fsnotify/issues/114) | +| USN Journals | Windows | [Maybe](https://github.com/fsnotify/fsnotify/issues/53) | +| Polling | *All* | [Maybe](https://github.com/fsnotify/fsnotify/issues/9) | -Go 1.6 supports dependencies located in the `vendor/` folder. Unless you are creating a library, it is recommended that you copy fsnotify into `vendor/github.com/fsnotify/fsnotify` within your project, and likewise for `golang.org/x/sys`. +Linux and macOS should include Android and iOS, but these are currently untested. -## Usage +Usage +----- +A basic example: ```go package main import ( - "log" + "log" - "github.com/fsnotify/fsnotify" + "github.com/fsnotify/fsnotify" ) func main() { - watcher, err := fsnotify.NewWatcher() - if err != nil { - log.Fatal(err) - } - defer watcher.Close() - - done := make(chan bool) - go func() { - for { - select { - case event, ok := <-watcher.Events: - if !ok { - return - } - log.Println("event:", event) - if event.Op&fsnotify.Write == fsnotify.Write { - log.Println("modified file:", event.Name) - } - case err, ok := <-watcher.Errors: - if !ok { - return - } - log.Println("error:", err) - } - } - }() - - err = watcher.Add("/tmp/foo") - if err != nil { - log.Fatal(err) - } - <-done + // Create new watcher. + watcher, err := fsnotify.NewWatcher() + if err != nil { + log.Fatal(err) + } + defer watcher.Close() + + // Start listening for events. + go func() { + for { + select { + case event, ok := <-watcher.Events: + if !ok { + return + } + log.Println("event:", event) + if event.Has(fsnotify.Write) { + log.Println("modified file:", event.Name) + } + case err, ok := <-watcher.Errors: + if !ok { + return + } + log.Println("error:", err) + } + } + }() + + // Add a path. + err = watcher.Add("/tmp") + if err != nil { + log.Fatal(err) + } + + // Block main goroutine forever. + <-make(chan struct{}) } ``` -## Contributing +Some more examples can be found in [cmd/fsnotify](cmd/fsnotify), which can be +run with: -Please refer to [CONTRIBUTING][] before opening an issue or pull request. + % go run ./cmd/fsnotify -## Example +FAQ +--- +### Will a file still be watched when it's moved to another directory? +No, not unless you are watching the location it was moved to. -See [example_test.go](https://github.com/fsnotify/fsnotify/blob/master/example_test.go). +### Are subdirectories watched too? +No, you must add watches for any directory you want to watch (a recursive +watcher is on the roadmap: [#18]). -## FAQ +[#18]: https://github.com/fsnotify/fsnotify/issues/18 -**When a file is moved to another directory is it still being watched?** +### Do I have to watch the Error and Event channels in a goroutine? +As of now, yes (you can read both channels in the same goroutine using `select`, +you don't need a separate goroutine for both channels; see the example). -No (it shouldn't be, unless you are watching where it was moved to). +### Why don't notifications work with NFS, SMB, FUSE, /proc, or /sys? +fsnotify requires support from underlying OS to work. The current NFS and SMB +protocols does not provide network level support for file notifications, and +neither do the /proc and /sys virtual filesystems. -**When I watch a directory, are all subdirectories watched as well?** +This could be fixed with a polling watcher ([#9]), but it's not yet implemented. -No, you must add watches for any directory you want to watch (a recursive watcher is on the roadmap [#18][]). +[#9]: https://github.com/fsnotify/fsnotify/issues/9 -**Do I have to watch the Error and Event channels in a separate goroutine?** +Platform-specific notes +----------------------- +### Linux +When a file is removed a REMOVE event won't be emitted until all file +descriptors are closed; it will emit a CHMOD instead: -As of now, yes. Looking into making this single-thread friendly (see [howeyc #7][#7]) + fp := os.Open("file") + os.Remove("file") // CHMOD + fp.Close() // REMOVE -**Why am I receiving multiple events for the same file on OS X?** +This is the event that inotify sends, so not much can be changed about this. -Spotlight indexing on OS X can result in multiple events (see [howeyc #62][#62]). A temporary workaround is to add your folder(s) to the *Spotlight Privacy settings* until we have a native FSEvents implementation (see [#11][]). +The `fs.inotify.max_user_watches` sysctl variable specifies the upper limit for +the number of watches per user, and `fs.inotify.max_user_instances` specifies +the maximum number of inotify instances per user. Every Watcher you create is an +"instance", and every path you add is a "watch". -**How many files can be watched at once?** +These are also exposed in `/proc` as `/proc/sys/fs/inotify/max_user_watches` and +`/proc/sys/fs/inotify/max_user_instances` -There are OS-specific limits as to how many watches can be created: -* Linux: /proc/sys/fs/inotify/max_user_watches contains the limit, reaching this limit results in a "no space left on device" error. -* BSD / OSX: sysctl variables "kern.maxfiles" and "kern.maxfilesperproc", reaching these limits results in a "too many open files" error. +To increase them you can use `sysctl` or write the value to proc file: -**Why don't notifications work with NFS filesystems or filesystem in userspace (FUSE)?** + # The default values on Linux 5.18 + sysctl fs.inotify.max_user_watches=124983 + sysctl fs.inotify.max_user_instances=128 -fsnotify requires support from underlying OS to work. The current NFS protocol does not provide network level support for file notifications. +To make the changes persist on reboot edit `/etc/sysctl.conf` or +`/usr/lib/sysctl.d/50-default.conf` (details differ per Linux distro; check your +distro's documentation): -[#62]: https://github.com/howeyc/fsnotify/issues/62 -[#18]: https://github.com/fsnotify/fsnotify/issues/18 -[#11]: https://github.com/fsnotify/fsnotify/issues/11 -[#7]: https://github.com/howeyc/fsnotify/issues/7 + fs.inotify.max_user_watches=124983 + fs.inotify.max_user_instances=128 -[contributing]: https://github.com/fsnotify/fsnotify/blob/master/CONTRIBUTING.md +Reaching the limit will result in a "no space left on device" or "too many open +files" error. -## Related Projects +### kqueue (macOS, all BSD systems) +kqueue requires opening a file descriptor for every file that's being watched; +so if you're watching a directory with five files then that's six file +descriptors. You will run in to your system's "max open files" limit faster on +these platforms. -* [notify](https://github.com/rjeczalik/notify) -* [fsevents](https://github.com/fsnotify/fsevents) +The sysctl variables `kern.maxfiles` and `kern.maxfilesperproc` can be used to +control the maximum number of open files. +### macOS +Spotlight indexing on macOS can result in multiple events (see [#15]). A temporary +workaround is to add your folder(s) to the *Spotlight Privacy settings* until we +have a native FSEvents implementation (see [#11]). + +[#11]: https://github.com/fsnotify/fsnotify/issues/11 +[#15]: https://github.com/fsnotify/fsnotify/issues/15 diff --git a/vendor/github.com/fsnotify/fsnotify/backend_fen.go b/vendor/github.com/fsnotify/fsnotify/backend_fen.go new file mode 100644 index 000000000..1a95ad8e7 --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/backend_fen.go @@ -0,0 +1,162 @@ +//go:build solaris +// +build solaris + +package fsnotify + +import ( + "errors" +) + +// Watcher watches a set of paths, delivering events on a channel. +// +// A watcher should not be copied (e.g. pass it by pointer, rather than by +// value). +// +// # Linux notes +// +// When a file is removed a Remove event won't be emitted until all file +// descriptors are closed, and deletes will always emit a Chmod. For example: +// +// fp := os.Open("file") +// os.Remove("file") // Triggers Chmod +// fp.Close() // Triggers Remove +// +// This is the event that inotify sends, so not much can be changed about this. +// +// The fs.inotify.max_user_watches sysctl variable specifies the upper limit +// for the number of watches per user, and fs.inotify.max_user_instances +// specifies the maximum number of inotify instances per user. Every Watcher you +// create is an "instance", and every path you add is a "watch". +// +// These are also exposed in /proc as /proc/sys/fs/inotify/max_user_watches and +// /proc/sys/fs/inotify/max_user_instances +// +// To increase them you can use sysctl or write the value to the /proc file: +// +// # Default values on Linux 5.18 +// sysctl fs.inotify.max_user_watches=124983 +// sysctl fs.inotify.max_user_instances=128 +// +// To make the changes persist on reboot edit /etc/sysctl.conf or +// /usr/lib/sysctl.d/50-default.conf (details differ per Linux distro; check +// your distro's documentation): +// +// fs.inotify.max_user_watches=124983 +// fs.inotify.max_user_instances=128 +// +// Reaching the limit will result in a "no space left on device" or "too many open +// files" error. +// +// # kqueue notes (macOS, BSD) +// +// kqueue requires opening a file descriptor for every file that's being watched; +// so if you're watching a directory with five files then that's six file +// descriptors. You will run in to your system's "max open files" limit faster on +// these platforms. +// +// The sysctl variables kern.maxfiles and kern.maxfilesperproc can be used to +// control the maximum number of open files, as well as /etc/login.conf on BSD +// systems. +// +// # macOS notes +// +// Spotlight indexing on macOS can result in multiple events (see [#15]). A +// temporary workaround is to add your folder(s) to the "Spotlight Privacy +// Settings" until we have a native FSEvents implementation (see [#11]). +// +// [#11]: https://github.com/fsnotify/fsnotify/issues/11 +// [#15]: https://github.com/fsnotify/fsnotify/issues/15 +type Watcher struct { + // Events sends the filesystem change events. + // + // fsnotify can send the following events; a "path" here can refer to a + // file, directory, symbolic link, or special file like a FIFO. + // + // fsnotify.Create A new path was created; this may be followed by one + // or more Write events if data also gets written to a + // file. + // + // fsnotify.Remove A path was removed. + // + // fsnotify.Rename A path was renamed. A rename is always sent with the + // old path as Event.Name, and a Create event will be + // sent with the new name. Renames are only sent for + // paths that are currently watched; e.g. moving an + // unmonitored file into a monitored directory will + // show up as just a Create. Similarly, renaming a file + // to outside a monitored directory will show up as + // only a Rename. + // + // fsnotify.Write A file or named pipe was written to. A Truncate will + // also trigger a Write. A single "write action" + // initiated by the user may show up as one or multiple + // writes, depending on when the system syncs things to + // disk. For example when compiling a large Go program + // you may get hundreds of Write events, so you + // probably want to wait until you've stopped receiving + // them (see the dedup example in cmd/fsnotify). + // + // fsnotify.Chmod Attributes were changed. On Linux this is also sent + // when a file is removed (or more accurately, when a + // link to an inode is removed). On kqueue it's sent + // and on kqueue when a file is truncated. On Windows + // it's never sent. + Events chan Event + + // Errors sends any errors. + Errors chan error +} + +// NewWatcher creates a new Watcher. +func NewWatcher() (*Watcher, error) { + return nil, errors.New("FEN based watcher not yet supported for fsnotify\n") +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + return nil +} + +// Add starts monitoring the path for changes. +// +// A path can only be watched once; attempting to watch it more than once will +// return an error. Paths that do not yet exist on the filesystem cannot be +// added. A watch will be automatically removed if the path is deleted. +// +// A path will remain watched if it gets renamed to somewhere else on the same +// filesystem, but the monitor will get removed if the path gets deleted and +// re-created, or if it's moved to a different filesystem. +// +// Notifications on network filesystems (NFS, SMB, FUSE, etc.) or special +// filesystems (/proc, /sys, etc.) generally don't work. +// +// # Watching directories +// +// All files in a directory are monitored, including new files that are created +// after the watcher is started. Subdirectories are not watched (i.e. it's +// non-recursive). +// +// # Watching files +// +// Watching individual files (rather than directories) is generally not +// recommended as many tools update files atomically. Instead of "just" writing +// to the file a temporary file will be written to first, and if successful the +// temporary file is moved to to destination removing the original, or some +// variant thereof. The watcher on the original file is now lost, as it no +// longer exists. +// +// Instead, watch the parent directory and use Event.Name to filter out files +// you're not interested in. There is an example of this in [cmd/fsnotify/file.go]. +func (w *Watcher) Add(name string) error { + return nil +} + +// Remove stops monitoring the path for changes. +// +// Directories are always removed non-recursively. For example, if you added +// /tmp/dir and /tmp/dir/subdir then you will need to remove both. +// +// Removing a path that has not yet been added returns [ErrNonExistentWatch]. +func (w *Watcher) Remove(name string) error { + return nil +} diff --git a/vendor/github.com/fsnotify/fsnotify/backend_inotify.go b/vendor/github.com/fsnotify/fsnotify/backend_inotify.go new file mode 100644 index 000000000..54c77fbb0 --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/backend_inotify.go @@ -0,0 +1,459 @@ +//go:build linux +// +build linux + +package fsnotify + +import ( + "errors" + "fmt" + "io" + "os" + "path/filepath" + "strings" + "sync" + "unsafe" + + "golang.org/x/sys/unix" +) + +// Watcher watches a set of paths, delivering events on a channel. +// +// A watcher should not be copied (e.g. pass it by pointer, rather than by +// value). +// +// # Linux notes +// +// When a file is removed a Remove event won't be emitted until all file +// descriptors are closed, and deletes will always emit a Chmod. For example: +// +// fp := os.Open("file") +// os.Remove("file") // Triggers Chmod +// fp.Close() // Triggers Remove +// +// This is the event that inotify sends, so not much can be changed about this. +// +// The fs.inotify.max_user_watches sysctl variable specifies the upper limit +// for the number of watches per user, and fs.inotify.max_user_instances +// specifies the maximum number of inotify instances per user. Every Watcher you +// create is an "instance", and every path you add is a "watch". +// +// These are also exposed in /proc as /proc/sys/fs/inotify/max_user_watches and +// /proc/sys/fs/inotify/max_user_instances +// +// To increase them you can use sysctl or write the value to the /proc file: +// +// # Default values on Linux 5.18 +// sysctl fs.inotify.max_user_watches=124983 +// sysctl fs.inotify.max_user_instances=128 +// +// To make the changes persist on reboot edit /etc/sysctl.conf or +// /usr/lib/sysctl.d/50-default.conf (details differ per Linux distro; check +// your distro's documentation): +// +// fs.inotify.max_user_watches=124983 +// fs.inotify.max_user_instances=128 +// +// Reaching the limit will result in a "no space left on device" or "too many open +// files" error. +// +// # kqueue notes (macOS, BSD) +// +// kqueue requires opening a file descriptor for every file that's being watched; +// so if you're watching a directory with five files then that's six file +// descriptors. You will run in to your system's "max open files" limit faster on +// these platforms. +// +// The sysctl variables kern.maxfiles and kern.maxfilesperproc can be used to +// control the maximum number of open files, as well as /etc/login.conf on BSD +// systems. +// +// # macOS notes +// +// Spotlight indexing on macOS can result in multiple events (see [#15]). A +// temporary workaround is to add your folder(s) to the "Spotlight Privacy +// Settings" until we have a native FSEvents implementation (see [#11]). +// +// [#11]: https://github.com/fsnotify/fsnotify/issues/11 +// [#15]: https://github.com/fsnotify/fsnotify/issues/15 +type Watcher struct { + // Events sends the filesystem change events. + // + // fsnotify can send the following events; a "path" here can refer to a + // file, directory, symbolic link, or special file like a FIFO. + // + // fsnotify.Create A new path was created; this may be followed by one + // or more Write events if data also gets written to a + // file. + // + // fsnotify.Remove A path was removed. + // + // fsnotify.Rename A path was renamed. A rename is always sent with the + // old path as Event.Name, and a Create event will be + // sent with the new name. Renames are only sent for + // paths that are currently watched; e.g. moving an + // unmonitored file into a monitored directory will + // show up as just a Create. Similarly, renaming a file + // to outside a monitored directory will show up as + // only a Rename. + // + // fsnotify.Write A file or named pipe was written to. A Truncate will + // also trigger a Write. A single "write action" + // initiated by the user may show up as one or multiple + // writes, depending on when the system syncs things to + // disk. For example when compiling a large Go program + // you may get hundreds of Write events, so you + // probably want to wait until you've stopped receiving + // them (see the dedup example in cmd/fsnotify). + // + // fsnotify.Chmod Attributes were changed. On Linux this is also sent + // when a file is removed (or more accurately, when a + // link to an inode is removed). On kqueue it's sent + // and on kqueue when a file is truncated. On Windows + // it's never sent. + Events chan Event + + // Errors sends any errors. + Errors chan error + + // Store fd here as os.File.Read() will no longer return on close after + // calling Fd(). See: https://github.com/golang/go/issues/26439 + fd int + mu sync.Mutex // Map access + inotifyFile *os.File + watches map[string]*watch // Map of inotify watches (key: path) + paths map[int]string // Map of watched paths (key: watch descriptor) + done chan struct{} // Channel for sending a "quit message" to the reader goroutine + doneResp chan struct{} // Channel to respond to Close +} + +// NewWatcher creates a new Watcher. +func NewWatcher() (*Watcher, error) { + // Create inotify fd + // Need to set the FD to nonblocking mode in order for SetDeadline methods to work + // Otherwise, blocking i/o operations won't terminate on close + fd, errno := unix.InotifyInit1(unix.IN_CLOEXEC | unix.IN_NONBLOCK) + if fd == -1 { + return nil, errno + } + + w := &Watcher{ + fd: fd, + inotifyFile: os.NewFile(uintptr(fd), ""), + watches: make(map[string]*watch), + paths: make(map[int]string), + Events: make(chan Event), + Errors: make(chan error), + done: make(chan struct{}), + doneResp: make(chan struct{}), + } + + go w.readEvents() + return w, nil +} + +// Returns true if the event was sent, or false if watcher is closed. +func (w *Watcher) sendEvent(e Event) bool { + select { + case w.Events <- e: + return true + case <-w.done: + } + return false +} + +// Returns true if the error was sent, or false if watcher is closed. +func (w *Watcher) sendError(err error) bool { + select { + case w.Errors <- err: + return true + case <-w.done: + return false + } +} + +func (w *Watcher) isClosed() bool { + select { + case <-w.done: + return true + default: + return false + } +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + w.mu.Lock() + if w.isClosed() { + w.mu.Unlock() + return nil + } + + // Send 'close' signal to goroutine, and set the Watcher to closed. + close(w.done) + w.mu.Unlock() + + // Causes any blocking reads to return with an error, provided the file + // still supports deadline operations. + err := w.inotifyFile.Close() + if err != nil { + return err + } + + // Wait for goroutine to close + <-w.doneResp + + return nil +} + +// Add starts monitoring the path for changes. +// +// A path can only be watched once; attempting to watch it more than once will +// return an error. Paths that do not yet exist on the filesystem cannot be +// added. A watch will be automatically removed if the path is deleted. +// +// A path will remain watched if it gets renamed to somewhere else on the same +// filesystem, but the monitor will get removed if the path gets deleted and +// re-created, or if it's moved to a different filesystem. +// +// Notifications on network filesystems (NFS, SMB, FUSE, etc.) or special +// filesystems (/proc, /sys, etc.) generally don't work. +// +// # Watching directories +// +// All files in a directory are monitored, including new files that are created +// after the watcher is started. Subdirectories are not watched (i.e. it's +// non-recursive). +// +// # Watching files +// +// Watching individual files (rather than directories) is generally not +// recommended as many tools update files atomically. Instead of "just" writing +// to the file a temporary file will be written to first, and if successful the +// temporary file is moved to to destination removing the original, or some +// variant thereof. The watcher on the original file is now lost, as it no +// longer exists. +// +// Instead, watch the parent directory and use Event.Name to filter out files +// you're not interested in. There is an example of this in [cmd/fsnotify/file.go]. +func (w *Watcher) Add(name string) error { + name = filepath.Clean(name) + if w.isClosed() { + return errors.New("inotify instance already closed") + } + + var flags uint32 = unix.IN_MOVED_TO | unix.IN_MOVED_FROM | + unix.IN_CREATE | unix.IN_ATTRIB | unix.IN_MODIFY | + unix.IN_MOVE_SELF | unix.IN_DELETE | unix.IN_DELETE_SELF + + w.mu.Lock() + defer w.mu.Unlock() + watchEntry := w.watches[name] + if watchEntry != nil { + flags |= watchEntry.flags | unix.IN_MASK_ADD + } + wd, errno := unix.InotifyAddWatch(w.fd, name, flags) + if wd == -1 { + return errno + } + + if watchEntry == nil { + w.watches[name] = &watch{wd: uint32(wd), flags: flags} + w.paths[wd] = name + } else { + watchEntry.wd = uint32(wd) + watchEntry.flags = flags + } + + return nil +} + +// Remove stops monitoring the path for changes. +// +// Directories are always removed non-recursively. For example, if you added +// /tmp/dir and /tmp/dir/subdir then you will need to remove both. +// +// Removing a path that has not yet been added returns [ErrNonExistentWatch]. +func (w *Watcher) Remove(name string) error { + name = filepath.Clean(name) + + // Fetch the watch. + w.mu.Lock() + defer w.mu.Unlock() + watch, ok := w.watches[name] + + // Remove it from inotify. + if !ok { + return fmt.Errorf("%w: %s", ErrNonExistentWatch, name) + } + + // We successfully removed the watch if InotifyRmWatch doesn't return an + // error, we need to clean up our internal state to ensure it matches + // inotify's kernel state. + delete(w.paths, int(watch.wd)) + delete(w.watches, name) + + // inotify_rm_watch will return EINVAL if the file has been deleted; + // the inotify will already have been removed. + // watches and pathes are deleted in ignoreLinux() implicitly and asynchronously + // by calling inotify_rm_watch() below. e.g. readEvents() goroutine receives IN_IGNORE + // so that EINVAL means that the wd is being rm_watch()ed or its file removed + // by another thread and we have not received IN_IGNORE event. + success, errno := unix.InotifyRmWatch(w.fd, watch.wd) + if success == -1 { + // TODO: Perhaps it's not helpful to return an error here in every case; + // The only two possible errors are: + // + // - EBADF, which happens when w.fd is not a valid file descriptor + // of any kind. + // - EINVAL, which is when fd is not an inotify descriptor or wd + // is not a valid watch descriptor. Watch descriptors are + // invalidated when they are removed explicitly or implicitly; + // explicitly by inotify_rm_watch, implicitly when the file they + // are watching is deleted. + return errno + } + + return nil +} + +// WatchList returns all paths added with [Add] (and are not yet removed). +func (w *Watcher) WatchList() []string { + w.mu.Lock() + defer w.mu.Unlock() + + entries := make([]string, 0, len(w.watches)) + for pathname := range w.watches { + entries = append(entries, pathname) + } + + return entries +} + +type watch struct { + wd uint32 // Watch descriptor (as returned by the inotify_add_watch() syscall) + flags uint32 // inotify flags of this watch (see inotify(7) for the list of valid flags) +} + +// readEvents reads from the inotify file descriptor, converts the +// received events into Event objects and sends them via the Events channel +func (w *Watcher) readEvents() { + defer func() { + close(w.doneResp) + close(w.Errors) + close(w.Events) + }() + + var ( + buf [unix.SizeofInotifyEvent * 4096]byte // Buffer for a maximum of 4096 raw events + errno error // Syscall errno + ) + for { + // See if we have been closed. + if w.isClosed() { + return + } + + n, err := w.inotifyFile.Read(buf[:]) + switch { + case errors.Unwrap(err) == os.ErrClosed: + return + case err != nil: + if !w.sendError(err) { + return + } + continue + } + + if n < unix.SizeofInotifyEvent { + var err error + if n == 0 { + // If EOF is received. This should really never happen. + err = io.EOF + } else if n < 0 { + // If an error occurred while reading. + err = errno + } else { + // Read was too short. + err = errors.New("notify: short read in readEvents()") + } + if !w.sendError(err) { + return + } + continue + } + + var offset uint32 + // We don't know how many events we just read into the buffer + // While the offset points to at least one whole event... + for offset <= uint32(n-unix.SizeofInotifyEvent) { + var ( + // Point "raw" to the event in the buffer + raw = (*unix.InotifyEvent)(unsafe.Pointer(&buf[offset])) + mask = uint32(raw.Mask) + nameLen = uint32(raw.Len) + ) + + if mask&unix.IN_Q_OVERFLOW != 0 { + if !w.sendError(ErrEventOverflow) { + return + } + } + + // If the event happened to the watched directory or the watched file, the kernel + // doesn't append the filename to the event, but we would like to always fill the + // the "Name" field with a valid filename. We retrieve the path of the watch from + // the "paths" map. + w.mu.Lock() + name, ok := w.paths[int(raw.Wd)] + // IN_DELETE_SELF occurs when the file/directory being watched is removed. + // This is a sign to clean up the maps, otherwise we are no longer in sync + // with the inotify kernel state which has already deleted the watch + // automatically. + if ok && mask&unix.IN_DELETE_SELF == unix.IN_DELETE_SELF { + delete(w.paths, int(raw.Wd)) + delete(w.watches, name) + } + w.mu.Unlock() + + if nameLen > 0 { + // Point "bytes" at the first byte of the filename + bytes := (*[unix.PathMax]byte)(unsafe.Pointer(&buf[offset+unix.SizeofInotifyEvent]))[:nameLen:nameLen] + // The filename is padded with NULL bytes. TrimRight() gets rid of those. + name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000") + } + + event := w.newEvent(name, mask) + + // Send the events that are not ignored on the events channel + if mask&unix.IN_IGNORED == 0 { + if !w.sendEvent(event) { + return + } + } + + // Move to the next event in the buffer + offset += unix.SizeofInotifyEvent + nameLen + } + } +} + +// newEvent returns an platform-independent Event based on an inotify mask. +func (w *Watcher) newEvent(name string, mask uint32) Event { + e := Event{Name: name} + if mask&unix.IN_CREATE == unix.IN_CREATE || mask&unix.IN_MOVED_TO == unix.IN_MOVED_TO { + e.Op |= Create + } + if mask&unix.IN_DELETE_SELF == unix.IN_DELETE_SELF || mask&unix.IN_DELETE == unix.IN_DELETE { + e.Op |= Remove + } + if mask&unix.IN_MODIFY == unix.IN_MODIFY { + e.Op |= Write + } + if mask&unix.IN_MOVE_SELF == unix.IN_MOVE_SELF || mask&unix.IN_MOVED_FROM == unix.IN_MOVED_FROM { + e.Op |= Rename + } + if mask&unix.IN_ATTRIB == unix.IN_ATTRIB { + e.Op |= Chmod + } + return e +} diff --git a/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go b/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go new file mode 100644 index 000000000..29087469b --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go @@ -0,0 +1,707 @@ +//go:build freebsd || openbsd || netbsd || dragonfly || darwin +// +build freebsd openbsd netbsd dragonfly darwin + +package fsnotify + +import ( + "errors" + "fmt" + "io/ioutil" + "os" + "path/filepath" + "sync" + + "golang.org/x/sys/unix" +) + +// Watcher watches a set of paths, delivering events on a channel. +// +// A watcher should not be copied (e.g. pass it by pointer, rather than by +// value). +// +// # Linux notes +// +// When a file is removed a Remove event won't be emitted until all file +// descriptors are closed, and deletes will always emit a Chmod. For example: +// +// fp := os.Open("file") +// os.Remove("file") // Triggers Chmod +// fp.Close() // Triggers Remove +// +// This is the event that inotify sends, so not much can be changed about this. +// +// The fs.inotify.max_user_watches sysctl variable specifies the upper limit +// for the number of watches per user, and fs.inotify.max_user_instances +// specifies the maximum number of inotify instances per user. Every Watcher you +// create is an "instance", and every path you add is a "watch". +// +// These are also exposed in /proc as /proc/sys/fs/inotify/max_user_watches and +// /proc/sys/fs/inotify/max_user_instances +// +// To increase them you can use sysctl or write the value to the /proc file: +// +// # Default values on Linux 5.18 +// sysctl fs.inotify.max_user_watches=124983 +// sysctl fs.inotify.max_user_instances=128 +// +// To make the changes persist on reboot edit /etc/sysctl.conf or +// /usr/lib/sysctl.d/50-default.conf (details differ per Linux distro; check +// your distro's documentation): +// +// fs.inotify.max_user_watches=124983 +// fs.inotify.max_user_instances=128 +// +// Reaching the limit will result in a "no space left on device" or "too many open +// files" error. +// +// # kqueue notes (macOS, BSD) +// +// kqueue requires opening a file descriptor for every file that's being watched; +// so if you're watching a directory with five files then that's six file +// descriptors. You will run in to your system's "max open files" limit faster on +// these platforms. +// +// The sysctl variables kern.maxfiles and kern.maxfilesperproc can be used to +// control the maximum number of open files, as well as /etc/login.conf on BSD +// systems. +// +// # macOS notes +// +// Spotlight indexing on macOS can result in multiple events (see [#15]). A +// temporary workaround is to add your folder(s) to the "Spotlight Privacy +// Settings" until we have a native FSEvents implementation (see [#11]). +// +// [#11]: https://github.com/fsnotify/fsnotify/issues/11 +// [#15]: https://github.com/fsnotify/fsnotify/issues/15 +type Watcher struct { + // Events sends the filesystem change events. + // + // fsnotify can send the following events; a "path" here can refer to a + // file, directory, symbolic link, or special file like a FIFO. + // + // fsnotify.Create A new path was created; this may be followed by one + // or more Write events if data also gets written to a + // file. + // + // fsnotify.Remove A path was removed. + // + // fsnotify.Rename A path was renamed. A rename is always sent with the + // old path as Event.Name, and a Create event will be + // sent with the new name. Renames are only sent for + // paths that are currently watched; e.g. moving an + // unmonitored file into a monitored directory will + // show up as just a Create. Similarly, renaming a file + // to outside a monitored directory will show up as + // only a Rename. + // + // fsnotify.Write A file or named pipe was written to. A Truncate will + // also trigger a Write. A single "write action" + // initiated by the user may show up as one or multiple + // writes, depending on when the system syncs things to + // disk. For example when compiling a large Go program + // you may get hundreds of Write events, so you + // probably want to wait until you've stopped receiving + // them (see the dedup example in cmd/fsnotify). + // + // fsnotify.Chmod Attributes were changed. On Linux this is also sent + // when a file is removed (or more accurately, when a + // link to an inode is removed). On kqueue it's sent + // and on kqueue when a file is truncated. On Windows + // it's never sent. + Events chan Event + + // Errors sends any errors. + Errors chan error + + done chan struct{} + kq int // File descriptor (as returned by the kqueue() syscall). + closepipe [2]int // Pipe used for closing. + mu sync.Mutex // Protects access to watcher data + watches map[string]int // Watched file descriptors (key: path). + watchesByDir map[string]map[int]struct{} // Watched file descriptors indexed by the parent directory (key: dirname(path)). + userWatches map[string]struct{} // Watches added with Watcher.Add() + dirFlags map[string]uint32 // Watched directories to fflags used in kqueue. + paths map[int]pathInfo // File descriptors to path names for processing kqueue events. + fileExists map[string]struct{} // Keep track of if we know this file exists (to stop duplicate create events). + isClosed bool // Set to true when Close() is first called +} + +type pathInfo struct { + name string + isDir bool +} + +// NewWatcher creates a new Watcher. +func NewWatcher() (*Watcher, error) { + kq, closepipe, err := newKqueue() + if err != nil { + return nil, err + } + + w := &Watcher{ + kq: kq, + closepipe: closepipe, + watches: make(map[string]int), + watchesByDir: make(map[string]map[int]struct{}), + dirFlags: make(map[string]uint32), + paths: make(map[int]pathInfo), + fileExists: make(map[string]struct{}), + userWatches: make(map[string]struct{}), + Events: make(chan Event), + Errors: make(chan error), + done: make(chan struct{}), + } + + go w.readEvents() + return w, nil +} + +// newKqueue creates a new kernel event queue and returns a descriptor. +// +// This registers a new event on closepipe, which will trigger an event when +// it's closed. This way we can use kevent() without timeout/polling; without +// the closepipe, it would block forever and we wouldn't be able to stop it at +// all. +func newKqueue() (kq int, closepipe [2]int, err error) { + kq, err = unix.Kqueue() + if kq == -1 { + return kq, closepipe, err + } + + // Register the close pipe. + err = unix.Pipe(closepipe[:]) + if err != nil { + unix.Close(kq) + return kq, closepipe, err + } + + // Register changes to listen on the closepipe. + changes := make([]unix.Kevent_t, 1) + // SetKevent converts int to the platform-specific types. + unix.SetKevent(&changes[0], closepipe[0], unix.EVFILT_READ, + unix.EV_ADD|unix.EV_ENABLE|unix.EV_ONESHOT) + + ok, err := unix.Kevent(kq, changes, nil, nil) + if ok == -1 { + unix.Close(kq) + unix.Close(closepipe[0]) + unix.Close(closepipe[1]) + return kq, closepipe, err + } + return kq, closepipe, nil +} + +// Returns true if the event was sent, or false if watcher is closed. +func (w *Watcher) sendEvent(e Event) bool { + select { + case w.Events <- e: + return true + case <-w.done: + } + return false +} + +// Returns true if the error was sent, or false if watcher is closed. +func (w *Watcher) sendError(err error) bool { + select { + case w.Errors <- err: + return true + case <-w.done: + } + return false +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + w.mu.Lock() + if w.isClosed { + w.mu.Unlock() + return nil + } + w.isClosed = true + + // copy paths to remove while locked + pathsToRemove := make([]string, 0, len(w.watches)) + for name := range w.watches { + pathsToRemove = append(pathsToRemove, name) + } + w.mu.Unlock() // Unlock before calling Remove, which also locks + for _, name := range pathsToRemove { + w.Remove(name) + } + + // Send "quit" message to the reader goroutine. + unix.Close(w.closepipe[1]) + close(w.done) + + return nil +} + +// Add starts monitoring the path for changes. +// +// A path can only be watched once; attempting to watch it more than once will +// return an error. Paths that do not yet exist on the filesystem cannot be +// added. A watch will be automatically removed if the path is deleted. +// +// A path will remain watched if it gets renamed to somewhere else on the same +// filesystem, but the monitor will get removed if the path gets deleted and +// re-created, or if it's moved to a different filesystem. +// +// Notifications on network filesystems (NFS, SMB, FUSE, etc.) or special +// filesystems (/proc, /sys, etc.) generally don't work. +// +// # Watching directories +// +// All files in a directory are monitored, including new files that are created +// after the watcher is started. Subdirectories are not watched (i.e. it's +// non-recursive). +// +// # Watching files +// +// Watching individual files (rather than directories) is generally not +// recommended as many tools update files atomically. Instead of "just" writing +// to the file a temporary file will be written to first, and if successful the +// temporary file is moved to to destination removing the original, or some +// variant thereof. The watcher on the original file is now lost, as it no +// longer exists. +// +// Instead, watch the parent directory and use Event.Name to filter out files +// you're not interested in. There is an example of this in [cmd/fsnotify/file.go]. +func (w *Watcher) Add(name string) error { + w.mu.Lock() + w.userWatches[name] = struct{}{} + w.mu.Unlock() + _, err := w.addWatch(name, noteAllEvents) + return err +} + +// Remove stops monitoring the path for changes. +// +// Directories are always removed non-recursively. For example, if you added +// /tmp/dir and /tmp/dir/subdir then you will need to remove both. +// +// Removing a path that has not yet been added returns [ErrNonExistentWatch]. +func (w *Watcher) Remove(name string) error { + name = filepath.Clean(name) + w.mu.Lock() + watchfd, ok := w.watches[name] + w.mu.Unlock() + if !ok { + return fmt.Errorf("%w: %s", ErrNonExistentWatch, name) + } + + err := w.register([]int{watchfd}, unix.EV_DELETE, 0) + if err != nil { + return err + } + + unix.Close(watchfd) + + w.mu.Lock() + isDir := w.paths[watchfd].isDir + delete(w.watches, name) + delete(w.userWatches, name) + + parentName := filepath.Dir(name) + delete(w.watchesByDir[parentName], watchfd) + + if len(w.watchesByDir[parentName]) == 0 { + delete(w.watchesByDir, parentName) + } + + delete(w.paths, watchfd) + delete(w.dirFlags, name) + delete(w.fileExists, name) + w.mu.Unlock() + + // Find all watched paths that are in this directory that are not external. + if isDir { + var pathsToRemove []string + w.mu.Lock() + for fd := range w.watchesByDir[name] { + path := w.paths[fd] + if _, ok := w.userWatches[path.name]; !ok { + pathsToRemove = append(pathsToRemove, path.name) + } + } + w.mu.Unlock() + for _, name := range pathsToRemove { + // Since these are internal, not much sense in propagating error + // to the user, as that will just confuse them with an error about + // a path they did not explicitly watch themselves. + w.Remove(name) + } + } + + return nil +} + +// WatchList returns all paths added with [Add] (and are not yet removed). +func (w *Watcher) WatchList() []string { + w.mu.Lock() + defer w.mu.Unlock() + + entries := make([]string, 0, len(w.userWatches)) + for pathname := range w.userWatches { + entries = append(entries, pathname) + } + + return entries +} + +// Watch all events (except NOTE_EXTEND, NOTE_LINK, NOTE_REVOKE) +const noteAllEvents = unix.NOTE_DELETE | unix.NOTE_WRITE | unix.NOTE_ATTRIB | unix.NOTE_RENAME + +// addWatch adds name to the watched file set. +// The flags are interpreted as described in kevent(2). +// Returns the real path to the file which was added, if any, which may be different from the one passed in the case of symlinks. +func (w *Watcher) addWatch(name string, flags uint32) (string, error) { + var isDir bool + // Make ./name and name equivalent + name = filepath.Clean(name) + + w.mu.Lock() + if w.isClosed { + w.mu.Unlock() + return "", errors.New("kevent instance already closed") + } + watchfd, alreadyWatching := w.watches[name] + // We already have a watch, but we can still override flags. + if alreadyWatching { + isDir = w.paths[watchfd].isDir + } + w.mu.Unlock() + + if !alreadyWatching { + fi, err := os.Lstat(name) + if err != nil { + return "", err + } + + // Don't watch sockets or named pipes + if (fi.Mode()&os.ModeSocket == os.ModeSocket) || (fi.Mode()&os.ModeNamedPipe == os.ModeNamedPipe) { + return "", nil + } + + // Follow Symlinks + // + // Linux can add unresolvable symlinks to the watch list without issue, + // and Windows can't do symlinks period. To maintain consistency, we + // will act like everything is fine if the link can't be resolved. + // There will simply be no file events for broken symlinks. Hence the + // returns of nil on errors. + if fi.Mode()&os.ModeSymlink == os.ModeSymlink { + name, err = filepath.EvalSymlinks(name) + if err != nil { + return "", nil + } + + w.mu.Lock() + _, alreadyWatching = w.watches[name] + w.mu.Unlock() + + if alreadyWatching { + return name, nil + } + + fi, err = os.Lstat(name) + if err != nil { + return "", nil + } + } + + // Retry on EINTR; open() can return EINTR in practice on macOS. + // See #354, and go issues 11180 and 39237. + for { + watchfd, err = unix.Open(name, openMode, 0) + if err == nil { + break + } + if errors.Is(err, unix.EINTR) { + continue + } + + return "", err + } + + isDir = fi.IsDir() + } + + err := w.register([]int{watchfd}, unix.EV_ADD|unix.EV_CLEAR|unix.EV_ENABLE, flags) + if err != nil { + unix.Close(watchfd) + return "", err + } + + if !alreadyWatching { + w.mu.Lock() + parentName := filepath.Dir(name) + w.watches[name] = watchfd + + watchesByDir, ok := w.watchesByDir[parentName] + if !ok { + watchesByDir = make(map[int]struct{}, 1) + w.watchesByDir[parentName] = watchesByDir + } + watchesByDir[watchfd] = struct{}{} + + w.paths[watchfd] = pathInfo{name: name, isDir: isDir} + w.mu.Unlock() + } + + if isDir { + // Watch the directory if it has not been watched before, + // or if it was watched before, but perhaps only a NOTE_DELETE (watchDirectoryFiles) + w.mu.Lock() + + watchDir := (flags&unix.NOTE_WRITE) == unix.NOTE_WRITE && + (!alreadyWatching || (w.dirFlags[name]&unix.NOTE_WRITE) != unix.NOTE_WRITE) + // Store flags so this watch can be updated later + w.dirFlags[name] = flags + w.mu.Unlock() + + if watchDir { + if err := w.watchDirectoryFiles(name); err != nil { + return "", err + } + } + } + return name, nil +} + +// readEvents reads from kqueue and converts the received kevents into +// Event values that it sends down the Events channel. +func (w *Watcher) readEvents() { + defer func() { + err := unix.Close(w.kq) + if err != nil { + w.Errors <- err + } + unix.Close(w.closepipe[0]) + close(w.Events) + close(w.Errors) + }() + + eventBuffer := make([]unix.Kevent_t, 10) + for closed := false; !closed; { + kevents, err := w.read(eventBuffer) + // EINTR is okay, the syscall was interrupted before timeout expired. + if err != nil && err != unix.EINTR { + if !w.sendError(fmt.Errorf("fsnotify.readEvents: %w", err)) { + closed = true + } + continue + } + + // Flush the events we received to the Events channel + for _, kevent := range kevents { + var ( + watchfd = int(kevent.Ident) + mask = uint32(kevent.Fflags) + ) + + // Shut down the loop when the pipe is closed, but only after all + // other events have been processed. + if watchfd == w.closepipe[0] { + closed = true + continue + } + + w.mu.Lock() + path := w.paths[watchfd] + w.mu.Unlock() + + event := w.newEvent(path.name, mask) + + if path.isDir && !event.Has(Remove) { + // Double check to make sure the directory exists. This can + // happen when we do a rm -fr on a recursively watched folders + // and we receive a modification event first but the folder has + // been deleted and later receive the delete event. + if _, err := os.Lstat(event.Name); os.IsNotExist(err) { + event.Op |= Remove + } + } + + if event.Has(Rename) || event.Has(Remove) { + w.Remove(event.Name) + w.mu.Lock() + delete(w.fileExists, event.Name) + w.mu.Unlock() + } + + if path.isDir && event.Has(Write) && !event.Has(Remove) { + w.sendDirectoryChangeEvents(event.Name) + } else { + if !w.sendEvent(event) { + closed = true + continue + } + } + + if event.Has(Remove) { + // Look for a file that may have overwritten this. + // For example, mv f1 f2 will delete f2, then create f2. + if path.isDir { + fileDir := filepath.Clean(event.Name) + w.mu.Lock() + _, found := w.watches[fileDir] + w.mu.Unlock() + if found { + // make sure the directory exists before we watch for changes. When we + // do a recursive watch and perform rm -fr, the parent directory might + // have gone missing, ignore the missing directory and let the + // upcoming delete event remove the watch from the parent directory. + if _, err := os.Lstat(fileDir); err == nil { + w.sendDirectoryChangeEvents(fileDir) + } + } + } else { + filePath := filepath.Clean(event.Name) + if fileInfo, err := os.Lstat(filePath); err == nil { + w.sendFileCreatedEventIfNew(filePath, fileInfo) + } + } + } + } + } +} + +// newEvent returns an platform-independent Event based on kqueue Fflags. +func (w *Watcher) newEvent(name string, mask uint32) Event { + e := Event{Name: name} + if mask&unix.NOTE_DELETE == unix.NOTE_DELETE { + e.Op |= Remove + } + if mask&unix.NOTE_WRITE == unix.NOTE_WRITE { + e.Op |= Write + } + if mask&unix.NOTE_RENAME == unix.NOTE_RENAME { + e.Op |= Rename + } + if mask&unix.NOTE_ATTRIB == unix.NOTE_ATTRIB { + e.Op |= Chmod + } + return e +} + +// watchDirectoryFiles to mimic inotify when adding a watch on a directory +func (w *Watcher) watchDirectoryFiles(dirPath string) error { + // Get all files + files, err := ioutil.ReadDir(dirPath) + if err != nil { + return err + } + + for _, fileInfo := range files { + path := filepath.Join(dirPath, fileInfo.Name()) + + cleanPath, err := w.internalWatch(path, fileInfo) + if err != nil { + // No permission to read the file; that's not a problem: just skip. + // But do add it to w.fileExists to prevent it from being picked up + // as a "new" file later (it still shows up in the directory + // listing). + switch { + case errors.Is(err, unix.EACCES) || errors.Is(err, unix.EPERM): + cleanPath = filepath.Clean(path) + default: + return fmt.Errorf("%q: %w", filepath.Join(dirPath, fileInfo.Name()), err) + } + } + + w.mu.Lock() + w.fileExists[cleanPath] = struct{}{} + w.mu.Unlock() + } + + return nil +} + +// Search the directory for new files and send an event for them. +// +// This functionality is to have the BSD watcher match the inotify, which sends +// a create event for files created in a watched directory. +func (w *Watcher) sendDirectoryChangeEvents(dir string) { + // Get all files + files, err := ioutil.ReadDir(dir) + if err != nil { + if !w.sendError(fmt.Errorf("fsnotify.sendDirectoryChangeEvents: %w", err)) { + return + } + } + + // Search for new files + for _, fi := range files { + err := w.sendFileCreatedEventIfNew(filepath.Join(dir, fi.Name()), fi) + if err != nil { + return + } + } +} + +// sendFileCreatedEvent sends a create event if the file isn't already being tracked. +func (w *Watcher) sendFileCreatedEventIfNew(filePath string, fileInfo os.FileInfo) (err error) { + w.mu.Lock() + _, doesExist := w.fileExists[filePath] + w.mu.Unlock() + if !doesExist { + if !w.sendEvent(Event{Name: filePath, Op: Create}) { + return + } + } + + // like watchDirectoryFiles (but without doing another ReadDir) + filePath, err = w.internalWatch(filePath, fileInfo) + if err != nil { + return err + } + + w.mu.Lock() + w.fileExists[filePath] = struct{}{} + w.mu.Unlock() + + return nil +} + +func (w *Watcher) internalWatch(name string, fileInfo os.FileInfo) (string, error) { + if fileInfo.IsDir() { + // mimic Linux providing delete events for subdirectories + // but preserve the flags used if currently watching subdirectory + w.mu.Lock() + flags := w.dirFlags[name] + w.mu.Unlock() + + flags |= unix.NOTE_DELETE | unix.NOTE_RENAME + return w.addWatch(name, flags) + } + + // watch file to mimic Linux inotify + return w.addWatch(name, noteAllEvents) +} + +// Register events with the queue. +func (w *Watcher) register(fds []int, flags int, fflags uint32) error { + changes := make([]unix.Kevent_t, len(fds)) + for i, fd := range fds { + // SetKevent converts int to the platform-specific types. + unix.SetKevent(&changes[i], fd, unix.EVFILT_VNODE, flags) + changes[i].Fflags = fflags + } + + // Register the events. + success, err := unix.Kevent(w.kq, changes, nil, nil) + if success == -1 { + return err + } + return nil +} + +// read retrieves pending events, or waits until an event occurs. +func (w *Watcher) read(events []unix.Kevent_t) ([]unix.Kevent_t, error) { + n, err := unix.Kevent(w.kq, nil, events, nil) + if err != nil { + return nil, err + } + return events[0:n], nil +} diff --git a/vendor/github.com/fsnotify/fsnotify/backend_other.go b/vendor/github.com/fsnotify/fsnotify/backend_other.go new file mode 100644 index 000000000..a9bb1c3c4 --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/backend_other.go @@ -0,0 +1,66 @@ +//go:build !darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows +// +build !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows + +package fsnotify + +import ( + "fmt" + "runtime" +) + +// Watcher watches a set of files, delivering events to a channel. +type Watcher struct{} + +// NewWatcher creates a new Watcher. +func NewWatcher() (*Watcher, error) { + return nil, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS) +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + return nil +} + +// Add starts monitoring the path for changes. +// +// A path can only be watched once; attempting to watch it more than once will +// return an error. Paths that do not yet exist on the filesystem cannot be +// added. A watch will be automatically removed if the path is deleted. +// +// A path will remain watched if it gets renamed to somewhere else on the same +// filesystem, but the monitor will get removed if the path gets deleted and +// re-created, or if it's moved to a different filesystem. +// +// Notifications on network filesystems (NFS, SMB, FUSE, etc.) or special +// filesystems (/proc, /sys, etc.) generally don't work. +// +// # Watching directories +// +// All files in a directory are monitored, including new files that are created +// after the watcher is started. Subdirectories are not watched (i.e. it's +// non-recursive). +// +// # Watching files +// +// Watching individual files (rather than directories) is generally not +// recommended as many tools update files atomically. Instead of "just" writing +// to the file a temporary file will be written to first, and if successful the +// temporary file is moved to to destination removing the original, or some +// variant thereof. The watcher on the original file is now lost, as it no +// longer exists. +// +// Instead, watch the parent directory and use Event.Name to filter out files +// you're not interested in. There is an example of this in [cmd/fsnotify/file.go]. +func (w *Watcher) Add(name string) error { + return nil +} + +// Remove stops monitoring the path for changes. +// +// Directories are always removed non-recursively. For example, if you added +// /tmp/dir and /tmp/dir/subdir then you will need to remove both. +// +// Removing a path that has not yet been added returns [ErrNonExistentWatch]. +func (w *Watcher) Remove(name string) error { + return nil +} diff --git a/vendor/github.com/fsnotify/fsnotify/backend_windows.go b/vendor/github.com/fsnotify/fsnotify/backend_windows.go new file mode 100644 index 000000000..ae392867c --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/backend_windows.go @@ -0,0 +1,746 @@ +//go:build windows +// +build windows + +package fsnotify + +import ( + "errors" + "fmt" + "os" + "path/filepath" + "reflect" + "runtime" + "strings" + "sync" + "unsafe" + + "golang.org/x/sys/windows" +) + +// Watcher watches a set of paths, delivering events on a channel. +// +// A watcher should not be copied (e.g. pass it by pointer, rather than by +// value). +// +// # Linux notes +// +// When a file is removed a Remove event won't be emitted until all file +// descriptors are closed, and deletes will always emit a Chmod. For example: +// +// fp := os.Open("file") +// os.Remove("file") // Triggers Chmod +// fp.Close() // Triggers Remove +// +// This is the event that inotify sends, so not much can be changed about this. +// +// The fs.inotify.max_user_watches sysctl variable specifies the upper limit +// for the number of watches per user, and fs.inotify.max_user_instances +// specifies the maximum number of inotify instances per user. Every Watcher you +// create is an "instance", and every path you add is a "watch". +// +// These are also exposed in /proc as /proc/sys/fs/inotify/max_user_watches and +// /proc/sys/fs/inotify/max_user_instances +// +// To increase them you can use sysctl or write the value to the /proc file: +// +// # Default values on Linux 5.18 +// sysctl fs.inotify.max_user_watches=124983 +// sysctl fs.inotify.max_user_instances=128 +// +// To make the changes persist on reboot edit /etc/sysctl.conf or +// /usr/lib/sysctl.d/50-default.conf (details differ per Linux distro; check +// your distro's documentation): +// +// fs.inotify.max_user_watches=124983 +// fs.inotify.max_user_instances=128 +// +// Reaching the limit will result in a "no space left on device" or "too many open +// files" error. +// +// # kqueue notes (macOS, BSD) +// +// kqueue requires opening a file descriptor for every file that's being watched; +// so if you're watching a directory with five files then that's six file +// descriptors. You will run in to your system's "max open files" limit faster on +// these platforms. +// +// The sysctl variables kern.maxfiles and kern.maxfilesperproc can be used to +// control the maximum number of open files, as well as /etc/login.conf on BSD +// systems. +// +// # macOS notes +// +// Spotlight indexing on macOS can result in multiple events (see [#15]). A +// temporary workaround is to add your folder(s) to the "Spotlight Privacy +// Settings" until we have a native FSEvents implementation (see [#11]). +// +// [#11]: https://github.com/fsnotify/fsnotify/issues/11 +// [#15]: https://github.com/fsnotify/fsnotify/issues/15 +type Watcher struct { + // Events sends the filesystem change events. + // + // fsnotify can send the following events; a "path" here can refer to a + // file, directory, symbolic link, or special file like a FIFO. + // + // fsnotify.Create A new path was created; this may be followed by one + // or more Write events if data also gets written to a + // file. + // + // fsnotify.Remove A path was removed. + // + // fsnotify.Rename A path was renamed. A rename is always sent with the + // old path as Event.Name, and a Create event will be + // sent with the new name. Renames are only sent for + // paths that are currently watched; e.g. moving an + // unmonitored file into a monitored directory will + // show up as just a Create. Similarly, renaming a file + // to outside a monitored directory will show up as + // only a Rename. + // + // fsnotify.Write A file or named pipe was written to. A Truncate will + // also trigger a Write. A single "write action" + // initiated by the user may show up as one or multiple + // writes, depending on when the system syncs things to + // disk. For example when compiling a large Go program + // you may get hundreds of Write events, so you + // probably want to wait until you've stopped receiving + // them (see the dedup example in cmd/fsnotify). + // + // fsnotify.Chmod Attributes were changed. On Linux this is also sent + // when a file is removed (or more accurately, when a + // link to an inode is removed). On kqueue it's sent + // and on kqueue when a file is truncated. On Windows + // it's never sent. + Events chan Event + + // Errors sends any errors. + Errors chan error + + port windows.Handle // Handle to completion port + input chan *input // Inputs to the reader are sent on this channel + quit chan chan<- error + + mu sync.Mutex // Protects access to watches, isClosed + watches watchMap // Map of watches (key: i-number) + isClosed bool // Set to true when Close() is first called +} + +// NewWatcher creates a new Watcher. +func NewWatcher() (*Watcher, error) { + port, err := windows.CreateIoCompletionPort(windows.InvalidHandle, 0, 0, 0) + if err != nil { + return nil, os.NewSyscallError("CreateIoCompletionPort", err) + } + w := &Watcher{ + port: port, + watches: make(watchMap), + input: make(chan *input, 1), + Events: make(chan Event, 50), + Errors: make(chan error), + quit: make(chan chan<- error, 1), + } + go w.readEvents() + return w, nil +} + +func (w *Watcher) sendEvent(name string, mask uint64) bool { + if mask == 0 { + return false + } + + event := w.newEvent(name, uint32(mask)) + select { + case ch := <-w.quit: + w.quit <- ch + case w.Events <- event: + } + return true +} + +// Returns true if the error was sent, or false if watcher is closed. +func (w *Watcher) sendError(err error) bool { + select { + case w.Errors <- err: + return true + case <-w.quit: + } + return false +} + +// Close removes all watches and closes the events channel. +func (w *Watcher) Close() error { + w.mu.Lock() + if w.isClosed { + w.mu.Unlock() + return nil + } + w.isClosed = true + w.mu.Unlock() + + // Send "quit" message to the reader goroutine + ch := make(chan error) + w.quit <- ch + if err := w.wakeupReader(); err != nil { + return err + } + return <-ch +} + +// Add starts monitoring the path for changes. +// +// A path can only be watched once; attempting to watch it more than once will +// return an error. Paths that do not yet exist on the filesystem cannot be +// added. A watch will be automatically removed if the path is deleted. +// +// A path will remain watched if it gets renamed to somewhere else on the same +// filesystem, but the monitor will get removed if the path gets deleted and +// re-created, or if it's moved to a different filesystem. +// +// Notifications on network filesystems (NFS, SMB, FUSE, etc.) or special +// filesystems (/proc, /sys, etc.) generally don't work. +// +// # Watching directories +// +// All files in a directory are monitored, including new files that are created +// after the watcher is started. Subdirectories are not watched (i.e. it's +// non-recursive). +// +// # Watching files +// +// Watching individual files (rather than directories) is generally not +// recommended as many tools update files atomically. Instead of "just" writing +// to the file a temporary file will be written to first, and if successful the +// temporary file is moved to to destination removing the original, or some +// variant thereof. The watcher on the original file is now lost, as it no +// longer exists. +// +// Instead, watch the parent directory and use Event.Name to filter out files +// you're not interested in. There is an example of this in [cmd/fsnotify/file.go]. +func (w *Watcher) Add(name string) error { + w.mu.Lock() + if w.isClosed { + w.mu.Unlock() + return errors.New("watcher already closed") + } + w.mu.Unlock() + + in := &input{ + op: opAddWatch, + path: filepath.Clean(name), + flags: sysFSALLEVENTS, + reply: make(chan error), + } + w.input <- in + if err := w.wakeupReader(); err != nil { + return err + } + return <-in.reply +} + +// Remove stops monitoring the path for changes. +// +// Directories are always removed non-recursively. For example, if you added +// /tmp/dir and /tmp/dir/subdir then you will need to remove both. +// +// Removing a path that has not yet been added returns [ErrNonExistentWatch]. +func (w *Watcher) Remove(name string) error { + in := &input{ + op: opRemoveWatch, + path: filepath.Clean(name), + reply: make(chan error), + } + w.input <- in + if err := w.wakeupReader(); err != nil { + return err + } + return <-in.reply +} + +// WatchList returns all paths added with [Add] (and are not yet removed). +func (w *Watcher) WatchList() []string { + w.mu.Lock() + defer w.mu.Unlock() + + entries := make([]string, 0, len(w.watches)) + for _, entry := range w.watches { + for _, watchEntry := range entry { + entries = append(entries, watchEntry.path) + } + } + + return entries +} + +// These options are from the old golang.org/x/exp/winfsnotify, where you could +// add various options to the watch. This has long since been removed. +// +// The "sys" in the name is misleading as they're not part of any "system". +// +// This should all be removed at some point, and just use windows.FILE_NOTIFY_* +const ( + sysFSALLEVENTS = 0xfff + sysFSATTRIB = 0x4 + sysFSCREATE = 0x100 + sysFSDELETE = 0x200 + sysFSDELETESELF = 0x400 + sysFSMODIFY = 0x2 + sysFSMOVE = 0xc0 + sysFSMOVEDFROM = 0x40 + sysFSMOVEDTO = 0x80 + sysFSMOVESELF = 0x800 + sysFSIGNORED = 0x8000 +) + +func (w *Watcher) newEvent(name string, mask uint32) Event { + e := Event{Name: name} + if mask&sysFSCREATE == sysFSCREATE || mask&sysFSMOVEDTO == sysFSMOVEDTO { + e.Op |= Create + } + if mask&sysFSDELETE == sysFSDELETE || mask&sysFSDELETESELF == sysFSDELETESELF { + e.Op |= Remove + } + if mask&sysFSMODIFY == sysFSMODIFY { + e.Op |= Write + } + if mask&sysFSMOVE == sysFSMOVE || mask&sysFSMOVESELF == sysFSMOVESELF || mask&sysFSMOVEDFROM == sysFSMOVEDFROM { + e.Op |= Rename + } + if mask&sysFSATTRIB == sysFSATTRIB { + e.Op |= Chmod + } + return e +} + +const ( + opAddWatch = iota + opRemoveWatch +) + +const ( + provisional uint64 = 1 << (32 + iota) +) + +type input struct { + op int + path string + flags uint32 + reply chan error +} + +type inode struct { + handle windows.Handle + volume uint32 + index uint64 +} + +type watch struct { + ov windows.Overlapped + ino *inode // i-number + path string // Directory path + mask uint64 // Directory itself is being watched with these notify flags + names map[string]uint64 // Map of names being watched and their notify flags + rename string // Remembers the old name while renaming a file + buf [65536]byte // 64K buffer +} + +type ( + indexMap map[uint64]*watch + watchMap map[uint32]indexMap +) + +func (w *Watcher) wakeupReader() error { + err := windows.PostQueuedCompletionStatus(w.port, 0, 0, nil) + if err != nil { + return os.NewSyscallError("PostQueuedCompletionStatus", err) + } + return nil +} + +func (w *Watcher) getDir(pathname string) (dir string, err error) { + attr, err := windows.GetFileAttributes(windows.StringToUTF16Ptr(pathname)) + if err != nil { + return "", os.NewSyscallError("GetFileAttributes", err) + } + if attr&windows.FILE_ATTRIBUTE_DIRECTORY != 0 { + dir = pathname + } else { + dir, _ = filepath.Split(pathname) + dir = filepath.Clean(dir) + } + return +} + +func (w *Watcher) getIno(path string) (ino *inode, err error) { + h, err := windows.CreateFile(windows.StringToUTF16Ptr(path), + windows.FILE_LIST_DIRECTORY, + windows.FILE_SHARE_READ|windows.FILE_SHARE_WRITE|windows.FILE_SHARE_DELETE, + nil, windows.OPEN_EXISTING, + windows.FILE_FLAG_BACKUP_SEMANTICS|windows.FILE_FLAG_OVERLAPPED, 0) + if err != nil { + return nil, os.NewSyscallError("CreateFile", err) + } + + var fi windows.ByHandleFileInformation + err = windows.GetFileInformationByHandle(h, &fi) + if err != nil { + windows.CloseHandle(h) + return nil, os.NewSyscallError("GetFileInformationByHandle", err) + } + ino = &inode{ + handle: h, + volume: fi.VolumeSerialNumber, + index: uint64(fi.FileIndexHigh)<<32 | uint64(fi.FileIndexLow), + } + return ino, nil +} + +// Must run within the I/O thread. +func (m watchMap) get(ino *inode) *watch { + if i := m[ino.volume]; i != nil { + return i[ino.index] + } + return nil +} + +// Must run within the I/O thread. +func (m watchMap) set(ino *inode, watch *watch) { + i := m[ino.volume] + if i == nil { + i = make(indexMap) + m[ino.volume] = i + } + i[ino.index] = watch +} + +// Must run within the I/O thread. +func (w *Watcher) addWatch(pathname string, flags uint64) error { + dir, err := w.getDir(pathname) + if err != nil { + return err + } + + ino, err := w.getIno(dir) + if err != nil { + return err + } + w.mu.Lock() + watchEntry := w.watches.get(ino) + w.mu.Unlock() + if watchEntry == nil { + _, err := windows.CreateIoCompletionPort(ino.handle, w.port, 0, 0) + if err != nil { + windows.CloseHandle(ino.handle) + return os.NewSyscallError("CreateIoCompletionPort", err) + } + watchEntry = &watch{ + ino: ino, + path: dir, + names: make(map[string]uint64), + } + w.mu.Lock() + w.watches.set(ino, watchEntry) + w.mu.Unlock() + flags |= provisional + } else { + windows.CloseHandle(ino.handle) + } + if pathname == dir { + watchEntry.mask |= flags + } else { + watchEntry.names[filepath.Base(pathname)] |= flags + } + + err = w.startRead(watchEntry) + if err != nil { + return err + } + + if pathname == dir { + watchEntry.mask &= ^provisional + } else { + watchEntry.names[filepath.Base(pathname)] &= ^provisional + } + return nil +} + +// Must run within the I/O thread. +func (w *Watcher) remWatch(pathname string) error { + dir, err := w.getDir(pathname) + if err != nil { + return err + } + ino, err := w.getIno(dir) + if err != nil { + return err + } + + w.mu.Lock() + watch := w.watches.get(ino) + w.mu.Unlock() + + err = windows.CloseHandle(ino.handle) + if err != nil { + w.sendError(os.NewSyscallError("CloseHandle", err)) + } + if watch == nil { + return fmt.Errorf("%w: %s", ErrNonExistentWatch, pathname) + } + if pathname == dir { + w.sendEvent(watch.path, watch.mask&sysFSIGNORED) + watch.mask = 0 + } else { + name := filepath.Base(pathname) + w.sendEvent(filepath.Join(watch.path, name), watch.names[name]&sysFSIGNORED) + delete(watch.names, name) + } + + return w.startRead(watch) +} + +// Must run within the I/O thread. +func (w *Watcher) deleteWatch(watch *watch) { + for name, mask := range watch.names { + if mask&provisional == 0 { + w.sendEvent(filepath.Join(watch.path, name), mask&sysFSIGNORED) + } + delete(watch.names, name) + } + if watch.mask != 0 { + if watch.mask&provisional == 0 { + w.sendEvent(watch.path, watch.mask&sysFSIGNORED) + } + watch.mask = 0 + } +} + +// Must run within the I/O thread. +func (w *Watcher) startRead(watch *watch) error { + err := windows.CancelIo(watch.ino.handle) + if err != nil { + w.sendError(os.NewSyscallError("CancelIo", err)) + w.deleteWatch(watch) + } + mask := w.toWindowsFlags(watch.mask) + for _, m := range watch.names { + mask |= w.toWindowsFlags(m) + } + if mask == 0 { + err := windows.CloseHandle(watch.ino.handle) + if err != nil { + w.sendError(os.NewSyscallError("CloseHandle", err)) + } + w.mu.Lock() + delete(w.watches[watch.ino.volume], watch.ino.index) + w.mu.Unlock() + return nil + } + + rdErr := windows.ReadDirectoryChanges(watch.ino.handle, &watch.buf[0], + uint32(unsafe.Sizeof(watch.buf)), false, mask, nil, &watch.ov, 0) + if rdErr != nil { + err := os.NewSyscallError("ReadDirectoryChanges", rdErr) + if rdErr == windows.ERROR_ACCESS_DENIED && watch.mask&provisional == 0 { + // Watched directory was probably removed + w.sendEvent(watch.path, watch.mask&sysFSDELETESELF) + err = nil + } + w.deleteWatch(watch) + w.startRead(watch) + return err + } + return nil +} + +// readEvents reads from the I/O completion port, converts the +// received events into Event objects and sends them via the Events channel. +// Entry point to the I/O thread. +func (w *Watcher) readEvents() { + var ( + n uint32 + key uintptr + ov *windows.Overlapped + ) + runtime.LockOSThread() + + for { + qErr := windows.GetQueuedCompletionStatus(w.port, &n, &key, &ov, windows.INFINITE) + // This error is handled after the watch == nil check below. NOTE: this + // seems odd, note sure if it's correct. + + watch := (*watch)(unsafe.Pointer(ov)) + if watch == nil { + select { + case ch := <-w.quit: + w.mu.Lock() + var indexes []indexMap + for _, index := range w.watches { + indexes = append(indexes, index) + } + w.mu.Unlock() + for _, index := range indexes { + for _, watch := range index { + w.deleteWatch(watch) + w.startRead(watch) + } + } + + err := windows.CloseHandle(w.port) + if err != nil { + err = os.NewSyscallError("CloseHandle", err) + } + close(w.Events) + close(w.Errors) + ch <- err + return + case in := <-w.input: + switch in.op { + case opAddWatch: + in.reply <- w.addWatch(in.path, uint64(in.flags)) + case opRemoveWatch: + in.reply <- w.remWatch(in.path) + } + default: + } + continue + } + + switch qErr { + case windows.ERROR_MORE_DATA: + if watch == nil { + w.sendError(errors.New("ERROR_MORE_DATA has unexpectedly null lpOverlapped buffer")) + } else { + // The i/o succeeded but the buffer is full. + // In theory we should be building up a full packet. + // In practice we can get away with just carrying on. + n = uint32(unsafe.Sizeof(watch.buf)) + } + case windows.ERROR_ACCESS_DENIED: + // Watched directory was probably removed + w.sendEvent(watch.path, watch.mask&sysFSDELETESELF) + w.deleteWatch(watch) + w.startRead(watch) + continue + case windows.ERROR_OPERATION_ABORTED: + // CancelIo was called on this handle + continue + default: + w.sendError(os.NewSyscallError("GetQueuedCompletionPort", qErr)) + continue + case nil: + } + + var offset uint32 + for { + if n == 0 { + w.sendError(errors.New("short read in readEvents()")) + break + } + + // Point "raw" to the event in the buffer + raw := (*windows.FileNotifyInformation)(unsafe.Pointer(&watch.buf[offset])) + + // Create a buf that is the size of the path name + size := int(raw.FileNameLength / 2) + var buf []uint16 + // TODO: Use unsafe.Slice in Go 1.17; https://stackoverflow.com/questions/51187973 + sh := (*reflect.SliceHeader)(unsafe.Pointer(&buf)) + sh.Data = uintptr(unsafe.Pointer(&raw.FileName)) + sh.Len = size + sh.Cap = size + name := windows.UTF16ToString(buf) + fullname := filepath.Join(watch.path, name) + + var mask uint64 + switch raw.Action { + case windows.FILE_ACTION_REMOVED: + mask = sysFSDELETESELF + case windows.FILE_ACTION_MODIFIED: + mask = sysFSMODIFY + case windows.FILE_ACTION_RENAMED_OLD_NAME: + watch.rename = name + case windows.FILE_ACTION_RENAMED_NEW_NAME: + // Update saved path of all sub-watches. + old := filepath.Join(watch.path, watch.rename) + w.mu.Lock() + for _, watchMap := range w.watches { + for _, ww := range watchMap { + if strings.HasPrefix(ww.path, old) { + ww.path = filepath.Join(fullname, strings.TrimPrefix(ww.path, old)) + } + } + } + w.mu.Unlock() + + if watch.names[watch.rename] != 0 { + watch.names[name] |= watch.names[watch.rename] + delete(watch.names, watch.rename) + mask = sysFSMOVESELF + } + } + + sendNameEvent := func() { + w.sendEvent(fullname, watch.names[name]&mask) + } + if raw.Action != windows.FILE_ACTION_RENAMED_NEW_NAME { + sendNameEvent() + } + if raw.Action == windows.FILE_ACTION_REMOVED { + w.sendEvent(fullname, watch.names[name]&sysFSIGNORED) + delete(watch.names, name) + } + + w.sendEvent(fullname, watch.mask&w.toFSnotifyFlags(raw.Action)) + if raw.Action == windows.FILE_ACTION_RENAMED_NEW_NAME { + fullname = filepath.Join(watch.path, watch.rename) + sendNameEvent() + } + + // Move to the next event in the buffer + if raw.NextEntryOffset == 0 { + break + } + offset += raw.NextEntryOffset + + // Error! + if offset >= n { + w.sendError(errors.New( + "Windows system assumed buffer larger than it is, events have likely been missed.")) + break + } + } + + if err := w.startRead(watch); err != nil { + w.sendError(err) + } + } +} + +func (w *Watcher) toWindowsFlags(mask uint64) uint32 { + var m uint32 + if mask&sysFSMODIFY != 0 { + m |= windows.FILE_NOTIFY_CHANGE_LAST_WRITE + } + if mask&sysFSATTRIB != 0 { + m |= windows.FILE_NOTIFY_CHANGE_ATTRIBUTES + } + if mask&(sysFSMOVE|sysFSCREATE|sysFSDELETE) != 0 { + m |= windows.FILE_NOTIFY_CHANGE_FILE_NAME | windows.FILE_NOTIFY_CHANGE_DIR_NAME + } + return m +} + +func (w *Watcher) toFSnotifyFlags(action uint32) uint64 { + switch action { + case windows.FILE_ACTION_ADDED: + return sysFSCREATE + case windows.FILE_ACTION_REMOVED: + return sysFSDELETE + case windows.FILE_ACTION_MODIFIED: + return sysFSMODIFY + case windows.FILE_ACTION_RENAMED_OLD_NAME: + return sysFSMOVEDFROM + case windows.FILE_ACTION_RENAMED_NEW_NAME: + return sysFSMOVEDTO + } + return 0 +} diff --git a/vendor/github.com/fsnotify/fsnotify/fen.go b/vendor/github.com/fsnotify/fsnotify/fen.go deleted file mode 100644 index ced39cb88..000000000 --- a/vendor/github.com/fsnotify/fsnotify/fen.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build solaris - -package fsnotify - -import ( - "errors" -) - -// Watcher watches a set of files, delivering events to a channel. -type Watcher struct { - Events chan Event - Errors chan error -} - -// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. -func NewWatcher() (*Watcher, error) { - return nil, errors.New("FEN based watcher not yet supported for fsnotify\n") -} - -// Close removes all watches and closes the events channel. -func (w *Watcher) Close() error { - return nil -} - -// Add starts watching the named file or directory (non-recursively). -func (w *Watcher) Add(name string) error { - return nil -} - -// Remove stops watching the the named file or directory (non-recursively). -func (w *Watcher) Remove(name string) error { - return nil -} diff --git a/vendor/github.com/fsnotify/fsnotify/fsnotify.go b/vendor/github.com/fsnotify/fsnotify/fsnotify.go index 89cab046d..30a5bf0f0 100644 --- a/vendor/github.com/fsnotify/fsnotify/fsnotify.go +++ b/vendor/github.com/fsnotify/fsnotify/fsnotify.go @@ -1,28 +1,37 @@ -// Copyright 2012 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +//go:build !plan9 // +build !plan9 -// Package fsnotify provides a platform-independent interface for file system notifications. +// Package fsnotify provides a cross-platform interface for file system +// notifications. package fsnotify import ( - "bytes" "errors" "fmt" + "strings" ) -// Event represents a single file system notification. +// Event represents a file system notification. type Event struct { - Name string // Relative path to the file or directory. - Op Op // File operation that triggered the event. + // Path to the file or directory. + // + // Paths are relative to the input; for example with Add("dir") the Name + // will be set to "dir/file" if you create that file, but if you use + // Add("/path/to/dir") it will be "/path/to/dir/file". + Name string + + // File operation that triggered the event. + // + // This is a bitmask and some systems may send multiple operations at once. + // Use the Event.Has() method instead of comparing with ==. + Op Op } // Op describes a set of file operations. type Op uint32 -// These are the generalized file operations that can trigger a notification. +// The operations fsnotify can trigger; see the documentation on [Watcher] for a +// full description, and check them with [Event.Has]. const ( Create Op = 1 << iota Write @@ -31,38 +40,42 @@ const ( Chmod ) -func (op Op) String() string { - // Use a buffer for efficient string concatenation - var buffer bytes.Buffer +// Common errors that can be reported by a watcher +var ( + ErrNonExistentWatch = errors.New("can't remove non-existent watcher") + ErrEventOverflow = errors.New("fsnotify queue overflow") +) - if op&Create == Create { - buffer.WriteString("|CREATE") +func (op Op) String() string { + var b strings.Builder + if op.Has(Create) { + b.WriteString("|CREATE") } - if op&Remove == Remove { - buffer.WriteString("|REMOVE") + if op.Has(Remove) { + b.WriteString("|REMOVE") } - if op&Write == Write { - buffer.WriteString("|WRITE") + if op.Has(Write) { + b.WriteString("|WRITE") } - if op&Rename == Rename { - buffer.WriteString("|RENAME") + if op.Has(Rename) { + b.WriteString("|RENAME") } - if op&Chmod == Chmod { - buffer.WriteString("|CHMOD") + if op.Has(Chmod) { + b.WriteString("|CHMOD") } - if buffer.Len() == 0 { - return "" + if b.Len() == 0 { + return "[no events]" } - return buffer.String()[1:] // Strip leading pipe + return b.String()[1:] } -// String returns a string representation of the event in the form -// "file: REMOVE|WRITE|..." +// Has reports if this operation has the given operation. +func (o Op) Has(h Op) bool { return o&h == h } + +// Has reports if this event has the given operation. +func (e Event) Has(op Op) bool { return e.Op.Has(op) } + +// String returns a string representation of the event with their path. func (e Event) String() string { - return fmt.Sprintf("%q: %s", e.Name, e.Op.String()) + return fmt.Sprintf("%-13s %q", e.Op.String(), e.Name) } - -// Common errors that can be reported by a watcher -var ( - ErrEventOverflow = errors.New("fsnotify queue overflow") -) diff --git a/vendor/github.com/fsnotify/fsnotify/inotify.go b/vendor/github.com/fsnotify/fsnotify/inotify.go deleted file mode 100644 index d9fd1b88a..000000000 --- a/vendor/github.com/fsnotify/fsnotify/inotify.go +++ /dev/null @@ -1,337 +0,0 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build linux - -package fsnotify - -import ( - "errors" - "fmt" - "io" - "os" - "path/filepath" - "strings" - "sync" - "unsafe" - - "golang.org/x/sys/unix" -) - -// Watcher watches a set of files, delivering events to a channel. -type Watcher struct { - Events chan Event - Errors chan error - mu sync.Mutex // Map access - fd int - poller *fdPoller - watches map[string]*watch // Map of inotify watches (key: path) - paths map[int]string // Map of watched paths (key: watch descriptor) - done chan struct{} // Channel for sending a "quit message" to the reader goroutine - doneResp chan struct{} // Channel to respond to Close -} - -// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. -func NewWatcher() (*Watcher, error) { - // Create inotify fd - fd, errno := unix.InotifyInit1(unix.IN_CLOEXEC) - if fd == -1 { - return nil, errno - } - // Create epoll - poller, err := newFdPoller(fd) - if err != nil { - unix.Close(fd) - return nil, err - } - w := &Watcher{ - fd: fd, - poller: poller, - watches: make(map[string]*watch), - paths: make(map[int]string), - Events: make(chan Event), - Errors: make(chan error), - done: make(chan struct{}), - doneResp: make(chan struct{}), - } - - go w.readEvents() - return w, nil -} - -func (w *Watcher) isClosed() bool { - select { - case <-w.done: - return true - default: - return false - } -} - -// Close removes all watches and closes the events channel. -func (w *Watcher) Close() error { - if w.isClosed() { - return nil - } - - // Send 'close' signal to goroutine, and set the Watcher to closed. - close(w.done) - - // Wake up goroutine - w.poller.wake() - - // Wait for goroutine to close - <-w.doneResp - - return nil -} - -// Add starts watching the named file or directory (non-recursively). -func (w *Watcher) Add(name string) error { - name = filepath.Clean(name) - if w.isClosed() { - return errors.New("inotify instance already closed") - } - - const agnosticEvents = unix.IN_MOVED_TO | unix.IN_MOVED_FROM | - unix.IN_CREATE | unix.IN_ATTRIB | unix.IN_MODIFY | - unix.IN_MOVE_SELF | unix.IN_DELETE | unix.IN_DELETE_SELF - - var flags uint32 = agnosticEvents - - w.mu.Lock() - defer w.mu.Unlock() - watchEntry := w.watches[name] - if watchEntry != nil { - flags |= watchEntry.flags | unix.IN_MASK_ADD - } - wd, errno := unix.InotifyAddWatch(w.fd, name, flags) - if wd == -1 { - return errno - } - - if watchEntry == nil { - w.watches[name] = &watch{wd: uint32(wd), flags: flags} - w.paths[wd] = name - } else { - watchEntry.wd = uint32(wd) - watchEntry.flags = flags - } - - return nil -} - -// Remove stops watching the named file or directory (non-recursively). -func (w *Watcher) Remove(name string) error { - name = filepath.Clean(name) - - // Fetch the watch. - w.mu.Lock() - defer w.mu.Unlock() - watch, ok := w.watches[name] - - // Remove it from inotify. - if !ok { - return fmt.Errorf("can't remove non-existent inotify watch for: %s", name) - } - - // We successfully removed the watch if InotifyRmWatch doesn't return an - // error, we need to clean up our internal state to ensure it matches - // inotify's kernel state. - delete(w.paths, int(watch.wd)) - delete(w.watches, name) - - // inotify_rm_watch will return EINVAL if the file has been deleted; - // the inotify will already have been removed. - // watches and pathes are deleted in ignoreLinux() implicitly and asynchronously - // by calling inotify_rm_watch() below. e.g. readEvents() goroutine receives IN_IGNORE - // so that EINVAL means that the wd is being rm_watch()ed or its file removed - // by another thread and we have not received IN_IGNORE event. - success, errno := unix.InotifyRmWatch(w.fd, watch.wd) - if success == -1 { - // TODO: Perhaps it's not helpful to return an error here in every case. - // the only two possible errors are: - // EBADF, which happens when w.fd is not a valid file descriptor of any kind. - // EINVAL, which is when fd is not an inotify descriptor or wd is not a valid watch descriptor. - // Watch descriptors are invalidated when they are removed explicitly or implicitly; - // explicitly by inotify_rm_watch, implicitly when the file they are watching is deleted. - return errno - } - - return nil -} - -type watch struct { - wd uint32 // Watch descriptor (as returned by the inotify_add_watch() syscall) - flags uint32 // inotify flags of this watch (see inotify(7) for the list of valid flags) -} - -// readEvents reads from the inotify file descriptor, converts the -// received events into Event objects and sends them via the Events channel -func (w *Watcher) readEvents() { - var ( - buf [unix.SizeofInotifyEvent * 4096]byte // Buffer for a maximum of 4096 raw events - n int // Number of bytes read with read() - errno error // Syscall errno - ok bool // For poller.wait - ) - - defer close(w.doneResp) - defer close(w.Errors) - defer close(w.Events) - defer unix.Close(w.fd) - defer w.poller.close() - - for { - // See if we have been closed. - if w.isClosed() { - return - } - - ok, errno = w.poller.wait() - if errno != nil { - select { - case w.Errors <- errno: - case <-w.done: - return - } - continue - } - - if !ok { - continue - } - - n, errno = unix.Read(w.fd, buf[:]) - // If a signal interrupted execution, see if we've been asked to close, and try again. - // http://man7.org/linux/man-pages/man7/signal.7.html : - // "Before Linux 3.8, reads from an inotify(7) file descriptor were not restartable" - if errno == unix.EINTR { - continue - } - - // unix.Read might have been woken up by Close. If so, we're done. - if w.isClosed() { - return - } - - if n < unix.SizeofInotifyEvent { - var err error - if n == 0 { - // If EOF is received. This should really never happen. - err = io.EOF - } else if n < 0 { - // If an error occurred while reading. - err = errno - } else { - // Read was too short. - err = errors.New("notify: short read in readEvents()") - } - select { - case w.Errors <- err: - case <-w.done: - return - } - continue - } - - var offset uint32 - // We don't know how many events we just read into the buffer - // While the offset points to at least one whole event... - for offset <= uint32(n-unix.SizeofInotifyEvent) { - // Point "raw" to the event in the buffer - raw := (*unix.InotifyEvent)(unsafe.Pointer(&buf[offset])) - - mask := uint32(raw.Mask) - nameLen := uint32(raw.Len) - - if mask&unix.IN_Q_OVERFLOW != 0 { - select { - case w.Errors <- ErrEventOverflow: - case <-w.done: - return - } - } - - // If the event happened to the watched directory or the watched file, the kernel - // doesn't append the filename to the event, but we would like to always fill the - // the "Name" field with a valid filename. We retrieve the path of the watch from - // the "paths" map. - w.mu.Lock() - name, ok := w.paths[int(raw.Wd)] - // IN_DELETE_SELF occurs when the file/directory being watched is removed. - // This is a sign to clean up the maps, otherwise we are no longer in sync - // with the inotify kernel state which has already deleted the watch - // automatically. - if ok && mask&unix.IN_DELETE_SELF == unix.IN_DELETE_SELF { - delete(w.paths, int(raw.Wd)) - delete(w.watches, name) - } - w.mu.Unlock() - - if nameLen > 0 { - // Point "bytes" at the first byte of the filename - bytes := (*[unix.PathMax]byte)(unsafe.Pointer(&buf[offset+unix.SizeofInotifyEvent])) - // The filename is padded with NULL bytes. TrimRight() gets rid of those. - name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000") - } - - event := newEvent(name, mask) - - // Send the events that are not ignored on the events channel - if !event.ignoreLinux(mask) { - select { - case w.Events <- event: - case <-w.done: - return - } - } - - // Move to the next event in the buffer - offset += unix.SizeofInotifyEvent + nameLen - } - } -} - -// Certain types of events can be "ignored" and not sent over the Events -// channel. Such as events marked ignore by the kernel, or MODIFY events -// against files that do not exist. -func (e *Event) ignoreLinux(mask uint32) bool { - // Ignore anything the inotify API says to ignore - if mask&unix.IN_IGNORED == unix.IN_IGNORED { - return true - } - - // If the event is not a DELETE or RENAME, the file must exist. - // Otherwise the event is ignored. - // *Note*: this was put in place because it was seen that a MODIFY - // event was sent after the DELETE. This ignores that MODIFY and - // assumes a DELETE will come or has come if the file doesn't exist. - if !(e.Op&Remove == Remove || e.Op&Rename == Rename) { - _, statErr := os.Lstat(e.Name) - return os.IsNotExist(statErr) - } - return false -} - -// newEvent returns an platform-independent Event based on an inotify mask. -func newEvent(name string, mask uint32) Event { - e := Event{Name: name} - if mask&unix.IN_CREATE == unix.IN_CREATE || mask&unix.IN_MOVED_TO == unix.IN_MOVED_TO { - e.Op |= Create - } - if mask&unix.IN_DELETE_SELF == unix.IN_DELETE_SELF || mask&unix.IN_DELETE == unix.IN_DELETE { - e.Op |= Remove - } - if mask&unix.IN_MODIFY == unix.IN_MODIFY { - e.Op |= Write - } - if mask&unix.IN_MOVE_SELF == unix.IN_MOVE_SELF || mask&unix.IN_MOVED_FROM == unix.IN_MOVED_FROM { - e.Op |= Rename - } - if mask&unix.IN_ATTRIB == unix.IN_ATTRIB { - e.Op |= Chmod - } - return e -} diff --git a/vendor/github.com/fsnotify/fsnotify/inotify_poller.go b/vendor/github.com/fsnotify/fsnotify/inotify_poller.go deleted file mode 100644 index b33f2b4d4..000000000 --- a/vendor/github.com/fsnotify/fsnotify/inotify_poller.go +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build linux - -package fsnotify - -import ( - "errors" - - "golang.org/x/sys/unix" -) - -type fdPoller struct { - fd int // File descriptor (as returned by the inotify_init() syscall) - epfd int // Epoll file descriptor - pipe [2]int // Pipe for waking up -} - -func emptyPoller(fd int) *fdPoller { - poller := new(fdPoller) - poller.fd = fd - poller.epfd = -1 - poller.pipe[0] = -1 - poller.pipe[1] = -1 - return poller -} - -// Create a new inotify poller. -// This creates an inotify handler, and an epoll handler. -func newFdPoller(fd int) (*fdPoller, error) { - var errno error - poller := emptyPoller(fd) - defer func() { - if errno != nil { - poller.close() - } - }() - poller.fd = fd - - // Create epoll fd - poller.epfd, errno = unix.EpollCreate1(unix.EPOLL_CLOEXEC) - if poller.epfd == -1 { - return nil, errno - } - // Create pipe; pipe[0] is the read end, pipe[1] the write end. - errno = unix.Pipe2(poller.pipe[:], unix.O_NONBLOCK|unix.O_CLOEXEC) - if errno != nil { - return nil, errno - } - - // Register inotify fd with epoll - event := unix.EpollEvent{ - Fd: int32(poller.fd), - Events: unix.EPOLLIN, - } - errno = unix.EpollCtl(poller.epfd, unix.EPOLL_CTL_ADD, poller.fd, &event) - if errno != nil { - return nil, errno - } - - // Register pipe fd with epoll - event = unix.EpollEvent{ - Fd: int32(poller.pipe[0]), - Events: unix.EPOLLIN, - } - errno = unix.EpollCtl(poller.epfd, unix.EPOLL_CTL_ADD, poller.pipe[0], &event) - if errno != nil { - return nil, errno - } - - return poller, nil -} - -// Wait using epoll. -// Returns true if something is ready to be read, -// false if there is not. -func (poller *fdPoller) wait() (bool, error) { - // 3 possible events per fd, and 2 fds, makes a maximum of 6 events. - // I don't know whether epoll_wait returns the number of events returned, - // or the total number of events ready. - // I decided to catch both by making the buffer one larger than the maximum. - events := make([]unix.EpollEvent, 7) - for { - n, errno := unix.EpollWait(poller.epfd, events, -1) - if n == -1 { - if errno == unix.EINTR { - continue - } - return false, errno - } - if n == 0 { - // If there are no events, try again. - continue - } - if n > 6 { - // This should never happen. More events were returned than should be possible. - return false, errors.New("epoll_wait returned more events than I know what to do with") - } - ready := events[:n] - epollhup := false - epollerr := false - epollin := false - for _, event := range ready { - if event.Fd == int32(poller.fd) { - if event.Events&unix.EPOLLHUP != 0 { - // This should not happen, but if it does, treat it as a wakeup. - epollhup = true - } - if event.Events&unix.EPOLLERR != 0 { - // If an error is waiting on the file descriptor, we should pretend - // something is ready to read, and let unix.Read pick up the error. - epollerr = true - } - if event.Events&unix.EPOLLIN != 0 { - // There is data to read. - epollin = true - } - } - if event.Fd == int32(poller.pipe[0]) { - if event.Events&unix.EPOLLHUP != 0 { - // Write pipe descriptor was closed, by us. This means we're closing down the - // watcher, and we should wake up. - } - if event.Events&unix.EPOLLERR != 0 { - // If an error is waiting on the pipe file descriptor. - // This is an absolute mystery, and should never ever happen. - return false, errors.New("Error on the pipe descriptor.") - } - if event.Events&unix.EPOLLIN != 0 { - // This is a regular wakeup, so we have to clear the buffer. - err := poller.clearWake() - if err != nil { - return false, err - } - } - } - } - - if epollhup || epollerr || epollin { - return true, nil - } - return false, nil - } -} - -// Close the write end of the poller. -func (poller *fdPoller) wake() error { - buf := make([]byte, 1) - n, errno := unix.Write(poller.pipe[1], buf) - if n == -1 { - if errno == unix.EAGAIN { - // Buffer is full, poller will wake. - return nil - } - return errno - } - return nil -} - -func (poller *fdPoller) clearWake() error { - // You have to be woken up a LOT in order to get to 100! - buf := make([]byte, 100) - n, errno := unix.Read(poller.pipe[0], buf) - if n == -1 { - if errno == unix.EAGAIN { - // Buffer is empty, someone else cleared our wake. - return nil - } - return errno - } - return nil -} - -// Close all poller file descriptors, but not the one passed to it. -func (poller *fdPoller) close() { - if poller.pipe[1] != -1 { - unix.Close(poller.pipe[1]) - } - if poller.pipe[0] != -1 { - unix.Close(poller.pipe[0]) - } - if poller.epfd != -1 { - unix.Close(poller.epfd) - } -} diff --git a/vendor/github.com/fsnotify/fsnotify/kqueue.go b/vendor/github.com/fsnotify/fsnotify/kqueue.go deleted file mode 100644 index 86e76a3d6..000000000 --- a/vendor/github.com/fsnotify/fsnotify/kqueue.go +++ /dev/null @@ -1,521 +0,0 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build freebsd openbsd netbsd dragonfly darwin - -package fsnotify - -import ( - "errors" - "fmt" - "io/ioutil" - "os" - "path/filepath" - "sync" - "time" - - "golang.org/x/sys/unix" -) - -// Watcher watches a set of files, delivering events to a channel. -type Watcher struct { - Events chan Event - Errors chan error - done chan struct{} // Channel for sending a "quit message" to the reader goroutine - - kq int // File descriptor (as returned by the kqueue() syscall). - - mu sync.Mutex // Protects access to watcher data - watches map[string]int // Map of watched file descriptors (key: path). - externalWatches map[string]bool // Map of watches added by user of the library. - dirFlags map[string]uint32 // Map of watched directories to fflags used in kqueue. - paths map[int]pathInfo // Map file descriptors to path names for processing kqueue events. - fileExists map[string]bool // Keep track of if we know this file exists (to stop duplicate create events). - isClosed bool // Set to true when Close() is first called -} - -type pathInfo struct { - name string - isDir bool -} - -// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. -func NewWatcher() (*Watcher, error) { - kq, err := kqueue() - if err != nil { - return nil, err - } - - w := &Watcher{ - kq: kq, - watches: make(map[string]int), - dirFlags: make(map[string]uint32), - paths: make(map[int]pathInfo), - fileExists: make(map[string]bool), - externalWatches: make(map[string]bool), - Events: make(chan Event), - Errors: make(chan error), - done: make(chan struct{}), - } - - go w.readEvents() - return w, nil -} - -// Close removes all watches and closes the events channel. -func (w *Watcher) Close() error { - w.mu.Lock() - if w.isClosed { - w.mu.Unlock() - return nil - } - w.isClosed = true - - // copy paths to remove while locked - var pathsToRemove = make([]string, 0, len(w.watches)) - for name := range w.watches { - pathsToRemove = append(pathsToRemove, name) - } - w.mu.Unlock() - // unlock before calling Remove, which also locks - - for _, name := range pathsToRemove { - w.Remove(name) - } - - // send a "quit" message to the reader goroutine - close(w.done) - - return nil -} - -// Add starts watching the named file or directory (non-recursively). -func (w *Watcher) Add(name string) error { - w.mu.Lock() - w.externalWatches[name] = true - w.mu.Unlock() - _, err := w.addWatch(name, noteAllEvents) - return err -} - -// Remove stops watching the the named file or directory (non-recursively). -func (w *Watcher) Remove(name string) error { - name = filepath.Clean(name) - w.mu.Lock() - watchfd, ok := w.watches[name] - w.mu.Unlock() - if !ok { - return fmt.Errorf("can't remove non-existent kevent watch for: %s", name) - } - - const registerRemove = unix.EV_DELETE - if err := register(w.kq, []int{watchfd}, registerRemove, 0); err != nil { - return err - } - - unix.Close(watchfd) - - w.mu.Lock() - isDir := w.paths[watchfd].isDir - delete(w.watches, name) - delete(w.paths, watchfd) - delete(w.dirFlags, name) - w.mu.Unlock() - - // Find all watched paths that are in this directory that are not external. - if isDir { - var pathsToRemove []string - w.mu.Lock() - for _, path := range w.paths { - wdir, _ := filepath.Split(path.name) - if filepath.Clean(wdir) == name { - if !w.externalWatches[path.name] { - pathsToRemove = append(pathsToRemove, path.name) - } - } - } - w.mu.Unlock() - for _, name := range pathsToRemove { - // Since these are internal, not much sense in propagating error - // to the user, as that will just confuse them with an error about - // a path they did not explicitly watch themselves. - w.Remove(name) - } - } - - return nil -} - -// Watch all events (except NOTE_EXTEND, NOTE_LINK, NOTE_REVOKE) -const noteAllEvents = unix.NOTE_DELETE | unix.NOTE_WRITE | unix.NOTE_ATTRIB | unix.NOTE_RENAME - -// keventWaitTime to block on each read from kevent -var keventWaitTime = durationToTimespec(100 * time.Millisecond) - -// addWatch adds name to the watched file set. -// The flags are interpreted as described in kevent(2). -// Returns the real path to the file which was added, if any, which may be different from the one passed in the case of symlinks. -func (w *Watcher) addWatch(name string, flags uint32) (string, error) { - var isDir bool - // Make ./name and name equivalent - name = filepath.Clean(name) - - w.mu.Lock() - if w.isClosed { - w.mu.Unlock() - return "", errors.New("kevent instance already closed") - } - watchfd, alreadyWatching := w.watches[name] - // We already have a watch, but we can still override flags. - if alreadyWatching { - isDir = w.paths[watchfd].isDir - } - w.mu.Unlock() - - if !alreadyWatching { - fi, err := os.Lstat(name) - if err != nil { - return "", err - } - - // Don't watch sockets. - if fi.Mode()&os.ModeSocket == os.ModeSocket { - return "", nil - } - - // Don't watch named pipes. - if fi.Mode()&os.ModeNamedPipe == os.ModeNamedPipe { - return "", nil - } - - // Follow Symlinks - // Unfortunately, Linux can add bogus symlinks to watch list without - // issue, and Windows can't do symlinks period (AFAIK). To maintain - // consistency, we will act like everything is fine. There will simply - // be no file events for broken symlinks. - // Hence the returns of nil on errors. - if fi.Mode()&os.ModeSymlink == os.ModeSymlink { - name, err = filepath.EvalSymlinks(name) - if err != nil { - return "", nil - } - - w.mu.Lock() - _, alreadyWatching = w.watches[name] - w.mu.Unlock() - - if alreadyWatching { - return name, nil - } - - fi, err = os.Lstat(name) - if err != nil { - return "", nil - } - } - - watchfd, err = unix.Open(name, openMode, 0700) - if watchfd == -1 { - return "", err - } - - isDir = fi.IsDir() - } - - const registerAdd = unix.EV_ADD | unix.EV_CLEAR | unix.EV_ENABLE - if err := register(w.kq, []int{watchfd}, registerAdd, flags); err != nil { - unix.Close(watchfd) - return "", err - } - - if !alreadyWatching { - w.mu.Lock() - w.watches[name] = watchfd - w.paths[watchfd] = pathInfo{name: name, isDir: isDir} - w.mu.Unlock() - } - - if isDir { - // Watch the directory if it has not been watched before, - // or if it was watched before, but perhaps only a NOTE_DELETE (watchDirectoryFiles) - w.mu.Lock() - - watchDir := (flags&unix.NOTE_WRITE) == unix.NOTE_WRITE && - (!alreadyWatching || (w.dirFlags[name]&unix.NOTE_WRITE) != unix.NOTE_WRITE) - // Store flags so this watch can be updated later - w.dirFlags[name] = flags - w.mu.Unlock() - - if watchDir { - if err := w.watchDirectoryFiles(name); err != nil { - return "", err - } - } - } - return name, nil -} - -// readEvents reads from kqueue and converts the received kevents into -// Event values that it sends down the Events channel. -func (w *Watcher) readEvents() { - eventBuffer := make([]unix.Kevent_t, 10) - -loop: - for { - // See if there is a message on the "done" channel - select { - case <-w.done: - break loop - default: - } - - // Get new events - kevents, err := read(w.kq, eventBuffer, &keventWaitTime) - // EINTR is okay, the syscall was interrupted before timeout expired. - if err != nil && err != unix.EINTR { - select { - case w.Errors <- err: - case <-w.done: - break loop - } - continue - } - - // Flush the events we received to the Events channel - for len(kevents) > 0 { - kevent := &kevents[0] - watchfd := int(kevent.Ident) - mask := uint32(kevent.Fflags) - w.mu.Lock() - path := w.paths[watchfd] - w.mu.Unlock() - event := newEvent(path.name, mask) - - if path.isDir && !(event.Op&Remove == Remove) { - // Double check to make sure the directory exists. This can happen when - // we do a rm -fr on a recursively watched folders and we receive a - // modification event first but the folder has been deleted and later - // receive the delete event - if _, err := os.Lstat(event.Name); os.IsNotExist(err) { - // mark is as delete event - event.Op |= Remove - } - } - - if event.Op&Rename == Rename || event.Op&Remove == Remove { - w.Remove(event.Name) - w.mu.Lock() - delete(w.fileExists, event.Name) - w.mu.Unlock() - } - - if path.isDir && event.Op&Write == Write && !(event.Op&Remove == Remove) { - w.sendDirectoryChangeEvents(event.Name) - } else { - // Send the event on the Events channel. - select { - case w.Events <- event: - case <-w.done: - break loop - } - } - - if event.Op&Remove == Remove { - // Look for a file that may have overwritten this. - // For example, mv f1 f2 will delete f2, then create f2. - if path.isDir { - fileDir := filepath.Clean(event.Name) - w.mu.Lock() - _, found := w.watches[fileDir] - w.mu.Unlock() - if found { - // make sure the directory exists before we watch for changes. When we - // do a recursive watch and perform rm -fr, the parent directory might - // have gone missing, ignore the missing directory and let the - // upcoming delete event remove the watch from the parent directory. - if _, err := os.Lstat(fileDir); err == nil { - w.sendDirectoryChangeEvents(fileDir) - } - } - } else { - filePath := filepath.Clean(event.Name) - if fileInfo, err := os.Lstat(filePath); err == nil { - w.sendFileCreatedEventIfNew(filePath, fileInfo) - } - } - } - - // Move to next event - kevents = kevents[1:] - } - } - - // cleanup - err := unix.Close(w.kq) - if err != nil { - // only way the previous loop breaks is if w.done was closed so we need to async send to w.Errors. - select { - case w.Errors <- err: - default: - } - } - close(w.Events) - close(w.Errors) -} - -// newEvent returns an platform-independent Event based on kqueue Fflags. -func newEvent(name string, mask uint32) Event { - e := Event{Name: name} - if mask&unix.NOTE_DELETE == unix.NOTE_DELETE { - e.Op |= Remove - } - if mask&unix.NOTE_WRITE == unix.NOTE_WRITE { - e.Op |= Write - } - if mask&unix.NOTE_RENAME == unix.NOTE_RENAME { - e.Op |= Rename - } - if mask&unix.NOTE_ATTRIB == unix.NOTE_ATTRIB { - e.Op |= Chmod - } - return e -} - -func newCreateEvent(name string) Event { - return Event{Name: name, Op: Create} -} - -// watchDirectoryFiles to mimic inotify when adding a watch on a directory -func (w *Watcher) watchDirectoryFiles(dirPath string) error { - // Get all files - files, err := ioutil.ReadDir(dirPath) - if err != nil { - return err - } - - for _, fileInfo := range files { - filePath := filepath.Join(dirPath, fileInfo.Name()) - filePath, err = w.internalWatch(filePath, fileInfo) - if err != nil { - return err - } - - w.mu.Lock() - w.fileExists[filePath] = true - w.mu.Unlock() - } - - return nil -} - -// sendDirectoryEvents searches the directory for newly created files -// and sends them over the event channel. This functionality is to have -// the BSD version of fsnotify match Linux inotify which provides a -// create event for files created in a watched directory. -func (w *Watcher) sendDirectoryChangeEvents(dirPath string) { - // Get all files - files, err := ioutil.ReadDir(dirPath) - if err != nil { - select { - case w.Errors <- err: - case <-w.done: - return - } - } - - // Search for new files - for _, fileInfo := range files { - filePath := filepath.Join(dirPath, fileInfo.Name()) - err := w.sendFileCreatedEventIfNew(filePath, fileInfo) - - if err != nil { - return - } - } -} - -// sendFileCreatedEvent sends a create event if the file isn't already being tracked. -func (w *Watcher) sendFileCreatedEventIfNew(filePath string, fileInfo os.FileInfo) (err error) { - w.mu.Lock() - _, doesExist := w.fileExists[filePath] - w.mu.Unlock() - if !doesExist { - // Send create event - select { - case w.Events <- newCreateEvent(filePath): - case <-w.done: - return - } - } - - // like watchDirectoryFiles (but without doing another ReadDir) - filePath, err = w.internalWatch(filePath, fileInfo) - if err != nil { - return err - } - - w.mu.Lock() - w.fileExists[filePath] = true - w.mu.Unlock() - - return nil -} - -func (w *Watcher) internalWatch(name string, fileInfo os.FileInfo) (string, error) { - if fileInfo.IsDir() { - // mimic Linux providing delete events for subdirectories - // but preserve the flags used if currently watching subdirectory - w.mu.Lock() - flags := w.dirFlags[name] - w.mu.Unlock() - - flags |= unix.NOTE_DELETE | unix.NOTE_RENAME - return w.addWatch(name, flags) - } - - // watch file to mimic Linux inotify - return w.addWatch(name, noteAllEvents) -} - -// kqueue creates a new kernel event queue and returns a descriptor. -func kqueue() (kq int, err error) { - kq, err = unix.Kqueue() - if kq == -1 { - return kq, err - } - return kq, nil -} - -// register events with the queue -func register(kq int, fds []int, flags int, fflags uint32) error { - changes := make([]unix.Kevent_t, len(fds)) - - for i, fd := range fds { - // SetKevent converts int to the platform-specific types: - unix.SetKevent(&changes[i], fd, unix.EVFILT_VNODE, flags) - changes[i].Fflags = fflags - } - - // register the events - success, err := unix.Kevent(kq, changes, nil, nil) - if success == -1 { - return err - } - return nil -} - -// read retrieves pending events, or waits until an event occurs. -// A timeout of nil blocks indefinitely, while 0 polls the queue. -func read(kq int, events []unix.Kevent_t, timeout *unix.Timespec) ([]unix.Kevent_t, error) { - n, err := unix.Kevent(kq, nil, events, timeout) - if err != nil { - return nil, err - } - return events[0:n], nil -} - -// durationToTimespec prepares a timeout value -func durationToTimespec(d time.Duration) unix.Timespec { - return unix.NsecToTimespec(d.Nanoseconds()) -} diff --git a/vendor/github.com/fsnotify/fsnotify/mkdoc.zsh b/vendor/github.com/fsnotify/fsnotify/mkdoc.zsh new file mode 100644 index 000000000..b09ef7683 --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/mkdoc.zsh @@ -0,0 +1,208 @@ +#!/usr/bin/env zsh +[ "${ZSH_VERSION:-}" = "" ] && echo >&2 "Only works with zsh" && exit 1 +setopt err_exit no_unset pipefail extended_glob + +# Simple script to update the godoc comments on all watchers. Probably took me +# more time to write this than doing it manually, but ah well 🙃 + +watcher=$(</tmp/x + print -r -- $cmt >>/tmp/x + tail -n+$(( end + 1 )) $file >>/tmp/x + mv /tmp/x $file + done +} + +set-cmt '^type Watcher struct ' $watcher +set-cmt '^func NewWatcher(' $new +set-cmt '^func (w \*Watcher) Add(' $add +set-cmt '^func (w \*Watcher) Remove(' $remove +set-cmt '^func (w \*Watcher) Close(' $close +set-cmt '^func (w \*Watcher) WatchList(' $watchlist +set-cmt '^[[:space:]]*Events *chan Event$' $events +set-cmt '^[[:space:]]*Errors *chan error$' $errors diff --git a/vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go b/vendor/github.com/fsnotify/fsnotify/system_bsd.go similarity index 50% rename from vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go rename to vendor/github.com/fsnotify/fsnotify/system_bsd.go index 2306c4620..4322b0b88 100644 --- a/vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go +++ b/vendor/github.com/fsnotify/fsnotify/system_bsd.go @@ -1,7 +1,4 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +//go:build freebsd || openbsd || netbsd || dragonfly // +build freebsd openbsd netbsd dragonfly package fsnotify diff --git a/vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go b/vendor/github.com/fsnotify/fsnotify/system_darwin.go similarity index 50% rename from vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go rename to vendor/github.com/fsnotify/fsnotify/system_darwin.go index 870c4d6d1..5da5ffa78 100644 --- a/vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go +++ b/vendor/github.com/fsnotify/fsnotify/system_darwin.go @@ -1,7 +1,4 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +//go:build darwin // +build darwin package fsnotify diff --git a/vendor/github.com/fsnotify/fsnotify/windows.go b/vendor/github.com/fsnotify/fsnotify/windows.go deleted file mode 100644 index 09436f31d..000000000 --- a/vendor/github.com/fsnotify/fsnotify/windows.go +++ /dev/null @@ -1,561 +0,0 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build windows - -package fsnotify - -import ( - "errors" - "fmt" - "os" - "path/filepath" - "runtime" - "sync" - "syscall" - "unsafe" -) - -// Watcher watches a set of files, delivering events to a channel. -type Watcher struct { - Events chan Event - Errors chan error - isClosed bool // Set to true when Close() is first called - mu sync.Mutex // Map access - port syscall.Handle // Handle to completion port - watches watchMap // Map of watches (key: i-number) - input chan *input // Inputs to the reader are sent on this channel - quit chan chan<- error -} - -// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. -func NewWatcher() (*Watcher, error) { - port, e := syscall.CreateIoCompletionPort(syscall.InvalidHandle, 0, 0, 0) - if e != nil { - return nil, os.NewSyscallError("CreateIoCompletionPort", e) - } - w := &Watcher{ - port: port, - watches: make(watchMap), - input: make(chan *input, 1), - Events: make(chan Event, 50), - Errors: make(chan error), - quit: make(chan chan<- error, 1), - } - go w.readEvents() - return w, nil -} - -// Close removes all watches and closes the events channel. -func (w *Watcher) Close() error { - if w.isClosed { - return nil - } - w.isClosed = true - - // Send "quit" message to the reader goroutine - ch := make(chan error) - w.quit <- ch - if err := w.wakeupReader(); err != nil { - return err - } - return <-ch -} - -// Add starts watching the named file or directory (non-recursively). -func (w *Watcher) Add(name string) error { - if w.isClosed { - return errors.New("watcher already closed") - } - in := &input{ - op: opAddWatch, - path: filepath.Clean(name), - flags: sysFSALLEVENTS, - reply: make(chan error), - } - w.input <- in - if err := w.wakeupReader(); err != nil { - return err - } - return <-in.reply -} - -// Remove stops watching the the named file or directory (non-recursively). -func (w *Watcher) Remove(name string) error { - in := &input{ - op: opRemoveWatch, - path: filepath.Clean(name), - reply: make(chan error), - } - w.input <- in - if err := w.wakeupReader(); err != nil { - return err - } - return <-in.reply -} - -const ( - // Options for AddWatch - sysFSONESHOT = 0x80000000 - sysFSONLYDIR = 0x1000000 - - // Events - sysFSACCESS = 0x1 - sysFSALLEVENTS = 0xfff - sysFSATTRIB = 0x4 - sysFSCLOSE = 0x18 - sysFSCREATE = 0x100 - sysFSDELETE = 0x200 - sysFSDELETESELF = 0x400 - sysFSMODIFY = 0x2 - sysFSMOVE = 0xc0 - sysFSMOVEDFROM = 0x40 - sysFSMOVEDTO = 0x80 - sysFSMOVESELF = 0x800 - - // Special events - sysFSIGNORED = 0x8000 - sysFSQOVERFLOW = 0x4000 -) - -func newEvent(name string, mask uint32) Event { - e := Event{Name: name} - if mask&sysFSCREATE == sysFSCREATE || mask&sysFSMOVEDTO == sysFSMOVEDTO { - e.Op |= Create - } - if mask&sysFSDELETE == sysFSDELETE || mask&sysFSDELETESELF == sysFSDELETESELF { - e.Op |= Remove - } - if mask&sysFSMODIFY == sysFSMODIFY { - e.Op |= Write - } - if mask&sysFSMOVE == sysFSMOVE || mask&sysFSMOVESELF == sysFSMOVESELF || mask&sysFSMOVEDFROM == sysFSMOVEDFROM { - e.Op |= Rename - } - if mask&sysFSATTRIB == sysFSATTRIB { - e.Op |= Chmod - } - return e -} - -const ( - opAddWatch = iota - opRemoveWatch -) - -const ( - provisional uint64 = 1 << (32 + iota) -) - -type input struct { - op int - path string - flags uint32 - reply chan error -} - -type inode struct { - handle syscall.Handle - volume uint32 - index uint64 -} - -type watch struct { - ov syscall.Overlapped - ino *inode // i-number - path string // Directory path - mask uint64 // Directory itself is being watched with these notify flags - names map[string]uint64 // Map of names being watched and their notify flags - rename string // Remembers the old name while renaming a file - buf [4096]byte -} - -type indexMap map[uint64]*watch -type watchMap map[uint32]indexMap - -func (w *Watcher) wakeupReader() error { - e := syscall.PostQueuedCompletionStatus(w.port, 0, 0, nil) - if e != nil { - return os.NewSyscallError("PostQueuedCompletionStatus", e) - } - return nil -} - -func getDir(pathname string) (dir string, err error) { - attr, e := syscall.GetFileAttributes(syscall.StringToUTF16Ptr(pathname)) - if e != nil { - return "", os.NewSyscallError("GetFileAttributes", e) - } - if attr&syscall.FILE_ATTRIBUTE_DIRECTORY != 0 { - dir = pathname - } else { - dir, _ = filepath.Split(pathname) - dir = filepath.Clean(dir) - } - return -} - -func getIno(path string) (ino *inode, err error) { - h, e := syscall.CreateFile(syscall.StringToUTF16Ptr(path), - syscall.FILE_LIST_DIRECTORY, - syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE|syscall.FILE_SHARE_DELETE, - nil, syscall.OPEN_EXISTING, - syscall.FILE_FLAG_BACKUP_SEMANTICS|syscall.FILE_FLAG_OVERLAPPED, 0) - if e != nil { - return nil, os.NewSyscallError("CreateFile", e) - } - var fi syscall.ByHandleFileInformation - if e = syscall.GetFileInformationByHandle(h, &fi); e != nil { - syscall.CloseHandle(h) - return nil, os.NewSyscallError("GetFileInformationByHandle", e) - } - ino = &inode{ - handle: h, - volume: fi.VolumeSerialNumber, - index: uint64(fi.FileIndexHigh)<<32 | uint64(fi.FileIndexLow), - } - return ino, nil -} - -// Must run within the I/O thread. -func (m watchMap) get(ino *inode) *watch { - if i := m[ino.volume]; i != nil { - return i[ino.index] - } - return nil -} - -// Must run within the I/O thread. -func (m watchMap) set(ino *inode, watch *watch) { - i := m[ino.volume] - if i == nil { - i = make(indexMap) - m[ino.volume] = i - } - i[ino.index] = watch -} - -// Must run within the I/O thread. -func (w *Watcher) addWatch(pathname string, flags uint64) error { - dir, err := getDir(pathname) - if err != nil { - return err - } - if flags&sysFSONLYDIR != 0 && pathname != dir { - return nil - } - ino, err := getIno(dir) - if err != nil { - return err - } - w.mu.Lock() - watchEntry := w.watches.get(ino) - w.mu.Unlock() - if watchEntry == nil { - if _, e := syscall.CreateIoCompletionPort(ino.handle, w.port, 0, 0); e != nil { - syscall.CloseHandle(ino.handle) - return os.NewSyscallError("CreateIoCompletionPort", e) - } - watchEntry = &watch{ - ino: ino, - path: dir, - names: make(map[string]uint64), - } - w.mu.Lock() - w.watches.set(ino, watchEntry) - w.mu.Unlock() - flags |= provisional - } else { - syscall.CloseHandle(ino.handle) - } - if pathname == dir { - watchEntry.mask |= flags - } else { - watchEntry.names[filepath.Base(pathname)] |= flags - } - if err = w.startRead(watchEntry); err != nil { - return err - } - if pathname == dir { - watchEntry.mask &= ^provisional - } else { - watchEntry.names[filepath.Base(pathname)] &= ^provisional - } - return nil -} - -// Must run within the I/O thread. -func (w *Watcher) remWatch(pathname string) error { - dir, err := getDir(pathname) - if err != nil { - return err - } - ino, err := getIno(dir) - if err != nil { - return err - } - w.mu.Lock() - watch := w.watches.get(ino) - w.mu.Unlock() - if watch == nil { - return fmt.Errorf("can't remove non-existent watch for: %s", pathname) - } - if pathname == dir { - w.sendEvent(watch.path, watch.mask&sysFSIGNORED) - watch.mask = 0 - } else { - name := filepath.Base(pathname) - w.sendEvent(filepath.Join(watch.path, name), watch.names[name]&sysFSIGNORED) - delete(watch.names, name) - } - return w.startRead(watch) -} - -// Must run within the I/O thread. -func (w *Watcher) deleteWatch(watch *watch) { - for name, mask := range watch.names { - if mask&provisional == 0 { - w.sendEvent(filepath.Join(watch.path, name), mask&sysFSIGNORED) - } - delete(watch.names, name) - } - if watch.mask != 0 { - if watch.mask&provisional == 0 { - w.sendEvent(watch.path, watch.mask&sysFSIGNORED) - } - watch.mask = 0 - } -} - -// Must run within the I/O thread. -func (w *Watcher) startRead(watch *watch) error { - if e := syscall.CancelIo(watch.ino.handle); e != nil { - w.Errors <- os.NewSyscallError("CancelIo", e) - w.deleteWatch(watch) - } - mask := toWindowsFlags(watch.mask) - for _, m := range watch.names { - mask |= toWindowsFlags(m) - } - if mask == 0 { - if e := syscall.CloseHandle(watch.ino.handle); e != nil { - w.Errors <- os.NewSyscallError("CloseHandle", e) - } - w.mu.Lock() - delete(w.watches[watch.ino.volume], watch.ino.index) - w.mu.Unlock() - return nil - } - e := syscall.ReadDirectoryChanges(watch.ino.handle, &watch.buf[0], - uint32(unsafe.Sizeof(watch.buf)), false, mask, nil, &watch.ov, 0) - if e != nil { - err := os.NewSyscallError("ReadDirectoryChanges", e) - if e == syscall.ERROR_ACCESS_DENIED && watch.mask&provisional == 0 { - // Watched directory was probably removed - if w.sendEvent(watch.path, watch.mask&sysFSDELETESELF) { - if watch.mask&sysFSONESHOT != 0 { - watch.mask = 0 - } - } - err = nil - } - w.deleteWatch(watch) - w.startRead(watch) - return err - } - return nil -} - -// readEvents reads from the I/O completion port, converts the -// received events into Event objects and sends them via the Events channel. -// Entry point to the I/O thread. -func (w *Watcher) readEvents() { - var ( - n, key uint32 - ov *syscall.Overlapped - ) - runtime.LockOSThread() - - for { - e := syscall.GetQueuedCompletionStatus(w.port, &n, &key, &ov, syscall.INFINITE) - watch := (*watch)(unsafe.Pointer(ov)) - - if watch == nil { - select { - case ch := <-w.quit: - w.mu.Lock() - var indexes []indexMap - for _, index := range w.watches { - indexes = append(indexes, index) - } - w.mu.Unlock() - for _, index := range indexes { - for _, watch := range index { - w.deleteWatch(watch) - w.startRead(watch) - } - } - var err error - if e := syscall.CloseHandle(w.port); e != nil { - err = os.NewSyscallError("CloseHandle", e) - } - close(w.Events) - close(w.Errors) - ch <- err - return - case in := <-w.input: - switch in.op { - case opAddWatch: - in.reply <- w.addWatch(in.path, uint64(in.flags)) - case opRemoveWatch: - in.reply <- w.remWatch(in.path) - } - default: - } - continue - } - - switch e { - case syscall.ERROR_MORE_DATA: - if watch == nil { - w.Errors <- errors.New("ERROR_MORE_DATA has unexpectedly null lpOverlapped buffer") - } else { - // The i/o succeeded but the buffer is full. - // In theory we should be building up a full packet. - // In practice we can get away with just carrying on. - n = uint32(unsafe.Sizeof(watch.buf)) - } - case syscall.ERROR_ACCESS_DENIED: - // Watched directory was probably removed - w.sendEvent(watch.path, watch.mask&sysFSDELETESELF) - w.deleteWatch(watch) - w.startRead(watch) - continue - case syscall.ERROR_OPERATION_ABORTED: - // CancelIo was called on this handle - continue - default: - w.Errors <- os.NewSyscallError("GetQueuedCompletionPort", e) - continue - case nil: - } - - var offset uint32 - for { - if n == 0 { - w.Events <- newEvent("", sysFSQOVERFLOW) - w.Errors <- errors.New("short read in readEvents()") - break - } - - // Point "raw" to the event in the buffer - raw := (*syscall.FileNotifyInformation)(unsafe.Pointer(&watch.buf[offset])) - buf := (*[syscall.MAX_PATH]uint16)(unsafe.Pointer(&raw.FileName)) - name := syscall.UTF16ToString(buf[:raw.FileNameLength/2]) - fullname := filepath.Join(watch.path, name) - - var mask uint64 - switch raw.Action { - case syscall.FILE_ACTION_REMOVED: - mask = sysFSDELETESELF - case syscall.FILE_ACTION_MODIFIED: - mask = sysFSMODIFY - case syscall.FILE_ACTION_RENAMED_OLD_NAME: - watch.rename = name - case syscall.FILE_ACTION_RENAMED_NEW_NAME: - if watch.names[watch.rename] != 0 { - watch.names[name] |= watch.names[watch.rename] - delete(watch.names, watch.rename) - mask = sysFSMOVESELF - } - } - - sendNameEvent := func() { - if w.sendEvent(fullname, watch.names[name]&mask) { - if watch.names[name]&sysFSONESHOT != 0 { - delete(watch.names, name) - } - } - } - if raw.Action != syscall.FILE_ACTION_RENAMED_NEW_NAME { - sendNameEvent() - } - if raw.Action == syscall.FILE_ACTION_REMOVED { - w.sendEvent(fullname, watch.names[name]&sysFSIGNORED) - delete(watch.names, name) - } - if w.sendEvent(fullname, watch.mask&toFSnotifyFlags(raw.Action)) { - if watch.mask&sysFSONESHOT != 0 { - watch.mask = 0 - } - } - if raw.Action == syscall.FILE_ACTION_RENAMED_NEW_NAME { - fullname = filepath.Join(watch.path, watch.rename) - sendNameEvent() - } - - // Move to the next event in the buffer - if raw.NextEntryOffset == 0 { - break - } - offset += raw.NextEntryOffset - - // Error! - if offset >= n { - w.Errors <- errors.New("Windows system assumed buffer larger than it is, events have likely been missed.") - break - } - } - - if err := w.startRead(watch); err != nil { - w.Errors <- err - } - } -} - -func (w *Watcher) sendEvent(name string, mask uint64) bool { - if mask == 0 { - return false - } - event := newEvent(name, uint32(mask)) - select { - case ch := <-w.quit: - w.quit <- ch - case w.Events <- event: - } - return true -} - -func toWindowsFlags(mask uint64) uint32 { - var m uint32 - if mask&sysFSACCESS != 0 { - m |= syscall.FILE_NOTIFY_CHANGE_LAST_ACCESS - } - if mask&sysFSMODIFY != 0 { - m |= syscall.FILE_NOTIFY_CHANGE_LAST_WRITE - } - if mask&sysFSATTRIB != 0 { - m |= syscall.FILE_NOTIFY_CHANGE_ATTRIBUTES - } - if mask&(sysFSMOVE|sysFSCREATE|sysFSDELETE) != 0 { - m |= syscall.FILE_NOTIFY_CHANGE_FILE_NAME | syscall.FILE_NOTIFY_CHANGE_DIR_NAME - } - return m -} - -func toFSnotifyFlags(action uint32) uint64 { - switch action { - case syscall.FILE_ACTION_ADDED: - return sysFSCREATE - case syscall.FILE_ACTION_REMOVED: - return sysFSDELETE - case syscall.FILE_ACTION_MODIFIED: - return sysFSMODIFY - case syscall.FILE_ACTION_RENAMED_OLD_NAME: - return sysFSMOVEDFROM - case syscall.FILE_ACTION_RENAMED_NEW_NAME: - return sysFSMOVEDTO - } - return 0 -} diff --git a/vendor/github.com/gin-contrib/cors/BUILD.bazel b/vendor/github.com/gin-contrib/cors/BUILD.bazel deleted file mode 100644 index d2c358d5d..000000000 --- a/vendor/github.com/gin-contrib/cors/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cors", - srcs = [ - "config.go", - "cors.go", - "utils.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-contrib/cors", - importpath = "github.com/gin-contrib/cors", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gin-gonic/gin"], -) diff --git a/vendor/github.com/gin-contrib/sse/BUILD.bazel b/vendor/github.com/gin-contrib/sse/BUILD.bazel deleted file mode 100644 index e051f2dcf..000000000 --- a/vendor/github.com/gin-contrib/sse/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sse", - srcs = [ - "sse-decoder.go", - "sse-encoder.go", - "writer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-contrib/sse", - importpath = "github.com/gin-contrib/sse", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/gin-gonic/gin/BUILD.bazel b/vendor/github.com/gin-gonic/gin/BUILD.bazel deleted file mode 100644 index 2d348b42e..000000000 --- a/vendor/github.com/gin-gonic/gin/BUILD.bazel +++ /dev/null @@ -1,36 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gin", - srcs = [ - "auth.go", - "context.go", - "debug.go", - "deprecated.go", - "doc.go", - "errors.go", - "fs.go", - "gin.go", - "logger.go", - "mode.go", - "path.go", - "recovery.go", - "response_writer.go", - "routergroup.go", - "test_helpers.go", - "tree.go", - "utils.go", - "version.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-gonic/gin", - importpath = "github.com/gin-gonic/gin", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gin-contrib/sse", - "//vendor/github.com/gin-gonic/gin/binding", - "//vendor/github.com/gin-gonic/gin/internal/bytesconv", - "//vendor/github.com/gin-gonic/gin/internal/json", - "//vendor/github.com/gin-gonic/gin/render", - "//vendor/github.com/mattn/go-isatty", - ], -) diff --git a/vendor/github.com/gin-gonic/gin/binding/BUILD.bazel b/vendor/github.com/gin-gonic/gin/binding/BUILD.bazel deleted file mode 100644 index aa66ac3b5..000000000 --- a/vendor/github.com/gin-gonic/gin/binding/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "binding", - srcs = [ - "binding.go", - "default_validator.go", - "form.go", - "form_mapping.go", - "header.go", - "json.go", - "msgpack.go", - "multipart_form_mapping.go", - "protobuf.go", - "query.go", - "uri.go", - "xml.go", - "yaml.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-gonic/gin/binding", - importpath = "github.com/gin-gonic/gin/binding", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gin-gonic/gin/internal/bytesconv", - "//vendor/github.com/gin-gonic/gin/internal/json", - "//vendor/github.com/go-playground/validator/v10:validator", - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/ugorji/go/codec", - "//vendor/gopkg.in/yaml.v2:yaml_v2", - ], -) diff --git a/vendor/github.com/gin-gonic/gin/internal/bytesconv/BUILD.bazel b/vendor/github.com/gin-gonic/gin/internal/bytesconv/BUILD.bazel deleted file mode 100644 index ea8244d4e..000000000 --- a/vendor/github.com/gin-gonic/gin/internal/bytesconv/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "bytesconv", - srcs = ["bytesconv.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-gonic/gin/internal/bytesconv", - importpath = "github.com/gin-gonic/gin/internal/bytesconv", - visibility = ["//vendor/github.com/gin-gonic/gin:__subpackages__"], -) diff --git a/vendor/github.com/gin-gonic/gin/internal/json/BUILD.bazel b/vendor/github.com/gin-gonic/gin/internal/json/BUILD.bazel deleted file mode 100644 index 3389c06cf..000000000 --- a/vendor/github.com/gin-gonic/gin/internal/json/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "json", - srcs = ["json.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-gonic/gin/internal/json", - importpath = "github.com/gin-gonic/gin/internal/json", - visibility = ["//vendor/github.com/gin-gonic/gin:__subpackages__"], -) diff --git a/vendor/github.com/gin-gonic/gin/render/BUILD.bazel b/vendor/github.com/gin-gonic/gin/render/BUILD.bazel deleted file mode 100644 index f5e597ad8..000000000 --- a/vendor/github.com/gin-gonic/gin/render/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "render", - srcs = [ - "data.go", - "html.go", - "json.go", - "msgpack.go", - "protobuf.go", - "reader.go", - "redirect.go", - "render.go", - "text.go", - "xml.go", - "yaml.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gin-gonic/gin/render", - importpath = "github.com/gin-gonic/gin/render", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gin-gonic/gin/internal/bytesconv", - "//vendor/github.com/gin-gonic/gin/internal/json", - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/ugorji/go/codec", - "//vendor/gopkg.in/yaml.v2:yaml_v2", - ], -) diff --git a/vendor/github.com/go-logr/logr/BUILD.bazel b/vendor/github.com/go-logr/logr/BUILD.bazel deleted file mode 100644 index b8f229603..000000000 --- a/vendor/github.com/go-logr/logr/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "logr", - srcs = [ - "discard.go", - "logr.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/go-logr/logr", - importpath = "github.com/go-logr/logr", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/go-logr/zapr/BUILD.bazel b/vendor/github.com/go-logr/zapr/BUILD.bazel deleted file mode 100644 index 493a1bc0a..000000000 --- a/vendor/github.com/go-logr/zapr/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "zapr", - srcs = ["zapr.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/go-logr/zapr", - importpath = "github.com/go-logr/zapr", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/go-logr/logr", - "//vendor/go.uber.org/zap", - "//vendor/go.uber.org/zap/zapcore", - ], -) diff --git a/vendor/github.com/go-playground/locales/BUILD.bazel b/vendor/github.com/go-playground/locales/BUILD.bazel deleted file mode 100644 index 26ba9e84f..000000000 --- a/vendor/github.com/go-playground/locales/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "locales", - srcs = ["rules.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/go-playground/locales", - importpath = "github.com/go-playground/locales", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/go-playground/locales/currency"], -) diff --git a/vendor/github.com/go-playground/locales/currency/BUILD.bazel b/vendor/github.com/go-playground/locales/currency/BUILD.bazel deleted file mode 100644 index 4ca7b576b..000000000 --- a/vendor/github.com/go-playground/locales/currency/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "currency", - srcs = ["currency.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/go-playground/locales/currency", - importpath = "github.com/go-playground/locales/currency", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/go-playground/universal-translator/BUILD.bazel b/vendor/github.com/go-playground/universal-translator/BUILD.bazel deleted file mode 100644 index 1ad8634cd..000000000 --- a/vendor/github.com/go-playground/universal-translator/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "universal-translator", - srcs = [ - "errors.go", - "import_export.go", - "translator.go", - "universal_translator.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/go-playground/universal-translator", - importpath = "github.com/go-playground/universal-translator", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/go-playground/locales"], -) diff --git a/vendor/github.com/go-playground/validator/v10/BUILD.bazel b/vendor/github.com/go-playground/validator/v10/BUILD.bazel deleted file mode 100644 index 300cb7f5e..000000000 --- a/vendor/github.com/go-playground/validator/v10/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "validator", - srcs = [ - "baked_in.go", - "cache.go", - "country_codes.go", - "doc.go", - "errors.go", - "field_level.go", - "regexes.go", - "struct_level.go", - "translations.go", - "util.go", - "validator.go", - "validator_instance.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/go-playground/validator/v10", - importpath = "github.com/go-playground/validator/v10", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/go-playground/universal-translator", - "//vendor/github.com/leodido/go-urn", - "//vendor/golang.org/x/crypto/sha3", - ], -) diff --git a/vendor/github.com/gogo/protobuf/proto/BUILD.bazel b/vendor/github.com/gogo/protobuf/proto/BUILD.bazel deleted file mode 100644 index 3c55a326f..000000000 --- a/vendor/github.com/gogo/protobuf/proto/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "proto", - srcs = [ - "clone.go", - "custom_gogo.go", - "decode.go", - "deprecated.go", - "discard.go", - "duration.go", - "duration_gogo.go", - "encode.go", - "encode_gogo.go", - "equal.go", - "extensions.go", - "extensions_gogo.go", - "lib.go", - "lib_gogo.go", - "message_set.go", - "pointer_reflect.go", - "pointer_reflect_gogo.go", - "pointer_unsafe.go", - "pointer_unsafe_gogo.go", - "properties.go", - "properties_gogo.go", - "skip_gogo.go", - "table_marshal.go", - "table_marshal_gogo.go", - "table_merge.go", - "table_unmarshal.go", - "table_unmarshal_gogo.go", - "text.go", - "text_gogo.go", - "text_parser.go", - "timestamp.go", - "timestamp_gogo.go", - "wrappers.go", - "wrappers_gogo.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gogo/protobuf/proto", - importpath = "github.com/gogo/protobuf/proto", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/gogo/protobuf/sortkeys/BUILD.bazel b/vendor/github.com/gogo/protobuf/sortkeys/BUILD.bazel deleted file mode 100644 index 8985e217b..000000000 --- a/vendor/github.com/gogo/protobuf/sortkeys/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sortkeys", - srcs = ["sortkeys.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gogo/protobuf/sortkeys", - importpath = "github.com/gogo/protobuf/sortkeys", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/golang/groupcache/lru/BUILD.bazel b/vendor/github.com/golang/groupcache/lru/BUILD.bazel deleted file mode 100644 index 4b4537c8b..000000000 --- a/vendor/github.com/golang/groupcache/lru/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "lru", - srcs = ["lru.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/golang/groupcache/lru", - importpath = "github.com/golang/groupcache/lru", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/golang/protobuf/proto/BUILD.bazel b/vendor/github.com/golang/protobuf/proto/BUILD.bazel deleted file mode 100644 index 4a178057d..000000000 --- a/vendor/github.com/golang/protobuf/proto/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "proto", - srcs = [ - "buffer.go", - "defaults.go", - "deprecated.go", - "discard.go", - "extensions.go", - "properties.go", - "proto.go", - "registry.go", - "text_decode.go", - "text_encode.go", - "wire.go", - "wrappers.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/golang/protobuf/proto", - importpath = "github.com/golang/protobuf/proto", - visibility = ["//visibility:public"], - deps = [ - "//vendor/google.golang.org/protobuf/encoding/prototext", - "//vendor/google.golang.org/protobuf/encoding/protowire", - "//vendor/google.golang.org/protobuf/proto", - "//vendor/google.golang.org/protobuf/reflect/protodesc", - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/reflect/protoregistry", - "//vendor/google.golang.org/protobuf/runtime/protoiface", - "//vendor/google.golang.org/protobuf/runtime/protoimpl", - ], -) diff --git a/vendor/github.com/golang/protobuf/ptypes/BUILD.bazel b/vendor/github.com/golang/protobuf/ptypes/BUILD.bazel deleted file mode 100644 index d8cefecd5..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ptypes", - srcs = [ - "any.go", - "doc.go", - "duration.go", - "timestamp.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/golang/protobuf/ptypes", - importpath = "github.com/golang/protobuf/ptypes", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/golang/protobuf/ptypes/any", - "//vendor/github.com/golang/protobuf/ptypes/duration", - "//vendor/github.com/golang/protobuf/ptypes/timestamp", - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/reflect/protoregistry", - ], -) diff --git a/vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel b/vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel deleted file mode 100644 index 30a1f09dd..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "any", - srcs = ["any.pb.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/golang/protobuf/ptypes/any", - importpath = "github.com/golang/protobuf/ptypes/any", - visibility = ["//visibility:public"], - deps = [ - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/runtime/protoimpl", - "//vendor/google.golang.org/protobuf/types/known/anypb", - ], -) diff --git a/vendor/github.com/golang/protobuf/ptypes/duration/BUILD.bazel b/vendor/github.com/golang/protobuf/ptypes/duration/BUILD.bazel deleted file mode 100644 index 2c970ac82..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/duration/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "duration", - srcs = ["duration.pb.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/golang/protobuf/ptypes/duration", - importpath = "github.com/golang/protobuf/ptypes/duration", - visibility = ["//visibility:public"], - deps = [ - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/runtime/protoimpl", - "//vendor/google.golang.org/protobuf/types/known/durationpb", - ], -) diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp/BUILD.bazel b/vendor/github.com/golang/protobuf/ptypes/timestamp/BUILD.bazel deleted file mode 100644 index 51855f627..000000000 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "timestamp", - srcs = ["timestamp.pb.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/golang/protobuf/ptypes/timestamp", - importpath = "github.com/golang/protobuf/ptypes/timestamp", - visibility = ["//visibility:public"], - deps = [ - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/runtime/protoimpl", - "//vendor/google.golang.org/protobuf/types/known/timestamppb", - ], -) diff --git a/vendor/github.com/google/go-cmp/cmp/BUILD.bazel b/vendor/github.com/google/go-cmp/cmp/BUILD.bazel deleted file mode 100644 index abb1fdcd7..000000000 --- a/vendor/github.com/google/go-cmp/cmp/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "cmp", - srcs = [ - "compare.go", - "export_unsafe.go", - "options.go", - "path.go", - "report.go", - "report_compare.go", - "report_references.go", - "report_reflect.go", - "report_slices.go", - "report_text.go", - "report_value.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/go-cmp/cmp", - importpath = "github.com/google/go-cmp/cmp", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/google/go-cmp/cmp/internal/diff", - "//vendor/github.com/google/go-cmp/cmp/internal/flags", - "//vendor/github.com/google/go-cmp/cmp/internal/function", - "//vendor/github.com/google/go-cmp/cmp/internal/value", - ], -) diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/BUILD.bazel b/vendor/github.com/google/go-cmp/cmp/internal/diff/BUILD.bazel deleted file mode 100644 index 23526a15d..000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "diff", - srcs = [ - "debug_disable.go", - "diff.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/go-cmp/cmp/internal/diff", - importpath = "github.com/google/go-cmp/cmp/internal/diff", - visibility = ["//vendor/github.com/google/go-cmp/cmp:__subpackages__"], - deps = ["//vendor/github.com/google/go-cmp/cmp/internal/flags"], -) diff --git a/vendor/github.com/google/go-cmp/cmp/internal/flags/BUILD.bazel b/vendor/github.com/google/go-cmp/cmp/internal/flags/BUILD.bazel deleted file mode 100644 index 728798265..000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/flags/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "flags", - srcs = ["flags.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/go-cmp/cmp/internal/flags", - importpath = "github.com/google/go-cmp/cmp/internal/flags", - visibility = ["//vendor/github.com/google/go-cmp/cmp:__subpackages__"], -) diff --git a/vendor/github.com/google/go-cmp/cmp/internal/function/BUILD.bazel b/vendor/github.com/google/go-cmp/cmp/internal/function/BUILD.bazel deleted file mode 100644 index b51425406..000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/function/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "function", - srcs = ["func.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/go-cmp/cmp/internal/function", - importpath = "github.com/google/go-cmp/cmp/internal/function", - visibility = ["//vendor/github.com/google/go-cmp/cmp:__subpackages__"], -) diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/BUILD.bazel b/vendor/github.com/google/go-cmp/cmp/internal/value/BUILD.bazel deleted file mode 100644 index d2f6292a6..000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "value", - srcs = [ - "name.go", - "pointer_unsafe.go", - "sort.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/go-cmp/cmp/internal/value", - importpath = "github.com/google/go-cmp/cmp/internal/value", - visibility = ["//vendor/github.com/google/go-cmp/cmp:__subpackages__"], -) diff --git a/vendor/github.com/google/gofuzz/BUILD.bazel b/vendor/github.com/google/gofuzz/BUILD.bazel deleted file mode 100644 index e4dec546e..000000000 --- a/vendor/github.com/google/gofuzz/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gofuzz", - srcs = [ - "doc.go", - "fuzz.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/gofuzz", - importpath = "github.com/google/gofuzz", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/google/gofuzz/bytesource"], -) diff --git a/vendor/github.com/google/gofuzz/bytesource/BUILD.bazel b/vendor/github.com/google/gofuzz/bytesource/BUILD.bazel deleted file mode 100644 index 9048ceff1..000000000 --- a/vendor/github.com/google/gofuzz/bytesource/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "bytesource", - srcs = ["bytesource.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/gofuzz/bytesource", - importpath = "github.com/google/gofuzz/bytesource", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/google/uuid/BUILD.bazel b/vendor/github.com/google/uuid/BUILD.bazel deleted file mode 100644 index d726ed24a..000000000 --- a/vendor/github.com/google/uuid/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "uuid", - srcs = [ - "dce.go", - "doc.go", - "hash.go", - "marshal.go", - "node.go", - "node_js.go", - "node_net.go", - "sql.go", - "time.go", - "util.go", - "uuid.go", - "version1.go", - "version4.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/google/uuid", - importpath = "github.com/google/uuid", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/google/uuid/hash.go b/vendor/github.com/google/uuid/hash.go index b17461631..b404f4bec 100644 --- a/vendor/github.com/google/uuid/hash.go +++ b/vendor/github.com/google/uuid/hash.go @@ -26,8 +26,8 @@ var ( // NewMD5 and NewSHA1. func NewHash(h hash.Hash, space UUID, data []byte, version int) UUID { h.Reset() - h.Write(space[:]) - h.Write(data) + h.Write(space[:]) //nolint:errcheck + h.Write(data) //nolint:errcheck s := h.Sum(nil) var uuid UUID copy(uuid[:], s) diff --git a/vendor/github.com/google/uuid/null.go b/vendor/github.com/google/uuid/null.go new file mode 100644 index 000000000..d7fcbf286 --- /dev/null +++ b/vendor/github.com/google/uuid/null.go @@ -0,0 +1,118 @@ +// Copyright 2021 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package uuid + +import ( + "bytes" + "database/sql/driver" + "encoding/json" + "fmt" +) + +var jsonNull = []byte("null") + +// NullUUID represents a UUID that may be null. +// NullUUID implements the SQL driver.Scanner interface so +// it can be used as a scan destination: +// +// var u uuid.NullUUID +// err := db.QueryRow("SELECT name FROM foo WHERE id=?", id).Scan(&u) +// ... +// if u.Valid { +// // use u.UUID +// } else { +// // NULL value +// } +// +type NullUUID struct { + UUID UUID + Valid bool // Valid is true if UUID is not NULL +} + +// Scan implements the SQL driver.Scanner interface. +func (nu *NullUUID) Scan(value interface{}) error { + if value == nil { + nu.UUID, nu.Valid = Nil, false + return nil + } + + err := nu.UUID.Scan(value) + if err != nil { + nu.Valid = false + return err + } + + nu.Valid = true + return nil +} + +// Value implements the driver Valuer interface. +func (nu NullUUID) Value() (driver.Value, error) { + if !nu.Valid { + return nil, nil + } + // Delegate to UUID Value function + return nu.UUID.Value() +} + +// MarshalBinary implements encoding.BinaryMarshaler. +func (nu NullUUID) MarshalBinary() ([]byte, error) { + if nu.Valid { + return nu.UUID[:], nil + } + + return []byte(nil), nil +} + +// UnmarshalBinary implements encoding.BinaryUnmarshaler. +func (nu *NullUUID) UnmarshalBinary(data []byte) error { + if len(data) != 16 { + return fmt.Errorf("invalid UUID (got %d bytes)", len(data)) + } + copy(nu.UUID[:], data) + nu.Valid = true + return nil +} + +// MarshalText implements encoding.TextMarshaler. +func (nu NullUUID) MarshalText() ([]byte, error) { + if nu.Valid { + return nu.UUID.MarshalText() + } + + return jsonNull, nil +} + +// UnmarshalText implements encoding.TextUnmarshaler. +func (nu *NullUUID) UnmarshalText(data []byte) error { + id, err := ParseBytes(data) + if err != nil { + nu.Valid = false + return err + } + nu.UUID = id + nu.Valid = true + return nil +} + +// MarshalJSON implements json.Marshaler. +func (nu NullUUID) MarshalJSON() ([]byte, error) { + if nu.Valid { + return json.Marshal(nu.UUID) + } + + return jsonNull, nil +} + +// UnmarshalJSON implements json.Unmarshaler. +func (nu *NullUUID) UnmarshalJSON(data []byte) error { + if bytes.Equal(data, jsonNull) { + *nu = NullUUID{} + return nil // valid null UUID + } + err := json.Unmarshal(data, &nu.UUID) + nu.Valid = err == nil + return err +} diff --git a/vendor/github.com/google/uuid/sql.go b/vendor/github.com/google/uuid/sql.go index f326b54db..2e02ec06c 100644 --- a/vendor/github.com/google/uuid/sql.go +++ b/vendor/github.com/google/uuid/sql.go @@ -9,7 +9,7 @@ import ( "fmt" ) -// Scan implements sql.Scanner so UUIDs can be read from databases transparently +// Scan implements sql.Scanner so UUIDs can be read from databases transparently. // Currently, database types that map to string and []byte are supported. Please // consult database-specific driver documentation for matching types. func (uuid *UUID) Scan(src interface{}) error { diff --git a/vendor/github.com/google/uuid/uuid.go b/vendor/github.com/google/uuid/uuid.go index 524404cc5..a57207aeb 100644 --- a/vendor/github.com/google/uuid/uuid.go +++ b/vendor/github.com/google/uuid/uuid.go @@ -12,6 +12,7 @@ import ( "fmt" "io" "strings" + "sync" ) // A UUID is a 128 bit (16 byte) Universal Unique IDentifier as defined in RFC @@ -33,7 +34,27 @@ const ( Future // Reserved for future definition. ) -var rander = rand.Reader // random function +const randPoolSize = 16 * 16 + +var ( + rander = rand.Reader // random function + poolEnabled = false + poolMu sync.Mutex + poolPos = randPoolSize // protected with poolMu + pool [randPoolSize]byte // protected with poolMu +) + +type invalidLengthError struct{ len int } + +func (err invalidLengthError) Error() string { + return fmt.Sprintf("invalid UUID length: %d", err.len) +} + +// IsInvalidLengthError is matcher function for custom error invalidLengthError +func IsInvalidLengthError(err error) bool { + _, ok := err.(invalidLengthError) + return ok +} // Parse decodes s into a UUID or returns an error. Both the standard UUID // forms of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and @@ -68,7 +89,7 @@ func Parse(s string) (UUID, error) { } return uuid, nil default: - return uuid, fmt.Errorf("invalid UUID length: %d", len(s)) + return uuid, invalidLengthError{len(s)} } // s is now at least 36 bytes long // it must be of the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx @@ -112,7 +133,7 @@ func ParseBytes(b []byte) (UUID, error) { } return uuid, nil default: - return uuid, fmt.Errorf("invalid UUID length: %d", len(b)) + return uuid, invalidLengthError{len(b)} } // s is now at least 36 bytes long // it must be of the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx @@ -243,3 +264,31 @@ func SetRand(r io.Reader) { } rander = r } + +// EnableRandPool enables internal randomness pool used for Random +// (Version 4) UUID generation. The pool contains random bytes read from +// the random number generator on demand in batches. Enabling the pool +// may improve the UUID generation throughput significantly. +// +// Since the pool is stored on the Go heap, this feature may be a bad fit +// for security sensitive applications. +// +// Both EnableRandPool and DisableRandPool are not thread-safe and should +// only be called when there is no possibility that New or any other +// UUID Version 4 generation function will be called concurrently. +func EnableRandPool() { + poolEnabled = true +} + +// DisableRandPool disables the randomness pool if it was previously +// enabled with EnableRandPool. +// +// Both EnableRandPool and DisableRandPool are not thread-safe and should +// only be called when there is no possibility that New or any other +// UUID Version 4 generation function will be called concurrently. +func DisableRandPool() { + poolEnabled = false + defer poolMu.Unlock() + poolMu.Lock() + poolPos = randPoolSize +} diff --git a/vendor/github.com/google/uuid/version4.go b/vendor/github.com/google/uuid/version4.go index c110465db..7697802e4 100644 --- a/vendor/github.com/google/uuid/version4.go +++ b/vendor/github.com/google/uuid/version4.go @@ -14,11 +14,21 @@ func New() UUID { return Must(NewRandom()) } +// NewString creates a new random UUID and returns it as a string or panics. +// NewString is equivalent to the expression +// +// uuid.New().String() +func NewString() string { + return Must(NewRandom()).String() +} + // NewRandom returns a Random (Version 4) UUID. // // The strength of the UUIDs is based on the strength of the crypto/rand // package. // +// Uses the randomness pool if it was enabled with EnableRandPool. +// // A note about uniqueness derived from the UUID Wikipedia entry: // // Randomly generated UUIDs have 122 random bits. One's annual risk of being @@ -27,7 +37,10 @@ func New() UUID { // equivalent to the odds of creating a few tens of trillions of UUIDs in a // year and having one duplicate. func NewRandom() (UUID, error) { - return NewRandomFromReader(rander) + if !poolEnabled { + return NewRandomFromReader(rander) + } + return newRandomFromPool() } // NewRandomFromReader returns a UUID based on bytes read from a given io.Reader. @@ -41,3 +54,23 @@ func NewRandomFromReader(r io.Reader) (UUID, error) { uuid[8] = (uuid[8] & 0x3f) | 0x80 // Variant is 10 return uuid, nil } + +func newRandomFromPool() (UUID, error) { + var uuid UUID + poolMu.Lock() + if poolPos == randPoolSize { + _, err := io.ReadFull(rander, pool[:]) + if err != nil { + poolMu.Unlock() + return Nil, err + } + poolPos = 0 + } + copy(uuid[:], pool[poolPos:(poolPos+16)]) + poolPos += 16 + poolMu.Unlock() + + uuid[6] = (uuid[6] & 0x0f) | 0x40 // Version 4 + uuid[8] = (uuid[8] & 0x3f) | 0x80 // Variant is 10 + return uuid, nil +} diff --git a/vendor/github.com/googleapis/gnostic/compiler/BUILD.bazel b/vendor/github.com/googleapis/gnostic/compiler/BUILD.bazel deleted file mode 100644 index da3885e43..000000000 --- a/vendor/github.com/googleapis/gnostic/compiler/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "compiler", - srcs = [ - "context.go", - "error.go", - "extensions.go", - "helpers.go", - "main.go", - "reader.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/googleapis/gnostic/compiler", - importpath = "github.com/googleapis/gnostic/compiler", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/golang/protobuf/ptypes/any", - "//vendor/github.com/googleapis/gnostic/extensions", - "//vendor/github.com/googleapis/gnostic/jsonschema", - "//vendor/gopkg.in/yaml.v3:yaml_v3", - ], -) diff --git a/vendor/github.com/googleapis/gnostic/extensions/BUILD.bazel b/vendor/github.com/googleapis/gnostic/extensions/BUILD.bazel deleted file mode 100644 index ee80767d9..000000000 --- a/vendor/github.com/googleapis/gnostic/extensions/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "extensions", - srcs = [ - "extension.pb.go", - "extensions.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/googleapis/gnostic/extensions", - importpath = "github.com/googleapis/gnostic/extensions", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/golang/protobuf/ptypes", - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/runtime/protoimpl", - "//vendor/google.golang.org/protobuf/types/known/anypb", - ], -) diff --git a/vendor/github.com/googleapis/gnostic/jsonschema/BUILD.bazel b/vendor/github.com/googleapis/gnostic/jsonschema/BUILD.bazel deleted file mode 100644 index 4101aecc1..000000000 --- a/vendor/github.com/googleapis/gnostic/jsonschema/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "jsonschema", - srcs = [ - "base.go", - "display.go", - "models.go", - "operations.go", - "reader.go", - "writer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/googleapis/gnostic/jsonschema", - importpath = "github.com/googleapis/gnostic/jsonschema", - visibility = ["//visibility:public"], - deps = ["//vendor/gopkg.in/yaml.v3:yaml_v3"], -) diff --git a/vendor/github.com/googleapis/gnostic/openapiv2/BUILD.bazel b/vendor/github.com/googleapis/gnostic/openapiv2/BUILD.bazel deleted file mode 100644 index bac702d53..000000000 --- a/vendor/github.com/googleapis/gnostic/openapiv2/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "openapiv2", - srcs = [ - "OpenAPIv2.go", - "OpenAPIv2.pb.go", - "document.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/googleapis/gnostic/openapiv2", - importpath = "github.com/googleapis/gnostic/openapiv2", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/googleapis/gnostic/compiler", - "//vendor/google.golang.org/protobuf/reflect/protoreflect", - "//vendor/google.golang.org/protobuf/runtime/protoimpl", - "//vendor/google.golang.org/protobuf/types/known/anypb", - "//vendor/gopkg.in/yaml.v3:yaml_v3", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/BUILD.bazel deleted file mode 100644 index 30147e3ab..000000000 --- a/vendor/github.com/gophercloud/gophercloud/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gophercloud", - srcs = [ - "auth_options.go", - "auth_result.go", - "doc.go", - "endpoint_search.go", - "errors.go", - "params.go", - "provider_client.go", - "results.go", - "service_client.go", - "util.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud", - importpath = "github.com/gophercloud/gophercloud", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/BUILD.bazel deleted file mode 100644 index 43be0cdf1..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "openstack", - srcs = [ - "auth_env.go", - "client.go", - "doc.go", - "endpoint_location.go", - "errors.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack", - importpath = "github.com/gophercloud/gophercloud/openstack", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/ec2tokens", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/oauth1", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens", - "//vendor/github.com/gophercloud/gophercloud/openstack/utils", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions/BUILD.bazel deleted file mode 100644 index ea01cbfe1..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "volumeactions", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions", - importpath = "github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gophercloud/gophercloud"], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots/BUILD.bazel deleted file mode 100644 index 6bcf0c9d0..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "snapshots", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - "util.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots", - importpath = "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes/BUILD.bazel deleted file mode 100644 index 088e5f518..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "volumes", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - "util.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes", - importpath = "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumetypes/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumetypes/BUILD.bazel deleted file mode 100644 index 5b1bf0a34..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumetypes/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "volumetypes", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumetypes", - importpath = "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumetypes", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/common/extensions/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/common/extensions/BUILD.bazel deleted file mode 100644 index 4abe8a17f..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/common/extensions/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "extensions", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/common/extensions", - importpath = "github.com/gophercloud/gophercloud/openstack/common/extensions", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/BUILD.bazel deleted file mode 100644 index 199e6ae1f..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "extensions", - srcs = [ - "delegate.go", - "doc.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions", - importpath = "github.com/gophercloud/gophercloud/openstack/compute/v2/extensions", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/common/extensions", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/startstop/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/startstop/BUILD.bazel deleted file mode 100644 index 248d6bca5..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/startstop/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "startstop", - srcs = [ - "doc.go", - "requests.go", - "results.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/startstop", - importpath = "github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/startstop", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/flavors/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/flavors/BUILD.bazel deleted file mode 100644 index c7c2fa53d..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/flavors/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "flavors", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/flavors", - importpath = "github.com/gophercloud/gophercloud/openstack/compute/v2/flavors", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/servers/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/servers/BUILD.bazel deleted file mode 100644 index 3e0192a88..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/servers/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "servers", - srcs = [ - "doc.go", - "errors.go", - "requests.go", - "results.go", - "urls.go", - "util.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/servers", - importpath = "github.com/gophercloud/gophercloud/openstack/compute/v2/servers", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants/BUILD.bazel deleted file mode 100644 index 89627f415..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tenants", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v2/tenants", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens/BUILD.bazel deleted file mode 100644 index e2cc8f82b..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tokens", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v2/tokens", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/applicationcredentials/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/applicationcredentials/BUILD.bazel deleted file mode 100644 index 73f40742d..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/applicationcredentials/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "applicationcredentials", - srcs = [ - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/applicationcredentials", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/applicationcredentials", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/ec2tokens/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/ec2tokens/BUILD.bazel deleted file mode 100644 index d59a078bd..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/ec2tokens/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ec2tokens", - srcs = [ - "doc.go", - "requests.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/ec2tokens", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/ec2tokens", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/oauth1/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/oauth1/BUILD.bazel deleted file mode 100644 index e6488a34e..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/oauth1/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "oauth1", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/oauth1", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/extensions/oauth1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/groups/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/groups/BUILD.bazel deleted file mode 100644 index 5f113db7c..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/groups/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "groups", - srcs = [ - "doc.go", - "errors.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/groups", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/groups", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/projects/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/projects/BUILD.bazel deleted file mode 100644 index 630f9bf77..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/projects/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "projects", - srcs = [ - "doc.go", - "errors.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/projects", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/projects", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/regions/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/regions/BUILD.bazel deleted file mode 100644 index 90f432681..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/regions/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "regions", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/regions", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/regions", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/BUILD.bazel deleted file mode 100644 index 9c0b50d8a..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tokens", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/tokens", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gophercloud/gophercloud"], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/users/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/users/BUILD.bazel deleted file mode 100644 index ab1473c15..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/users/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "users", - srcs = [ - "doc.go", - "errors.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/users", - importpath = "github.com/gophercloud/gophercloud/openstack/identity/v3/users", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/groups", - "//vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/projects", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata/BUILD.bazel deleted file mode 100644 index f12f4b31a..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "imagedata", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata", - importpath = "github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gophercloud/gophercloud"], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/images/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/images/BUILD.bazel deleted file mode 100644 index 48978ccb7..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/images/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "images", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "types.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/images", - importpath = "github.com/gophercloud/gophercloud/openstack/imageservice/v2/images", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack/utils", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/networks/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/networks/BUILD.bazel deleted file mode 100644 index 3f30b2e56..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/networks/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "networks", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/networks", - importpath = "github.com/gophercloud/gophercloud/openstack/networking/v2/networks", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/subnets/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/subnets/BUILD.bazel deleted file mode 100644 index d81fddf8a..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/subnets/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "subnets", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "urls.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/subnets", - importpath = "github.com/gophercloud/gophercloud/openstack/networking/v2/subnets", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/pagination", - ], -) diff --git a/vendor/github.com/gophercloud/gophercloud/openstack/utils/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/openstack/utils/BUILD.bazel deleted file mode 100644 index ad72853c2..000000000 --- a/vendor/github.com/gophercloud/gophercloud/openstack/utils/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "utils", - srcs = [ - "base_endpoint.go", - "choose_version.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/openstack/utils", - importpath = "github.com/gophercloud/gophercloud/openstack/utils", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gophercloud/gophercloud"], -) diff --git a/vendor/github.com/gophercloud/gophercloud/pagination/BUILD.bazel b/vendor/github.com/gophercloud/gophercloud/pagination/BUILD.bazel deleted file mode 100644 index e651ebd0f..000000000 --- a/vendor/github.com/gophercloud/gophercloud/pagination/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pagination", - srcs = [ - "http.go", - "linked.go", - "marker.go", - "pager.go", - "pkg.go", - "single.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/gophercloud/pagination", - importpath = "github.com/gophercloud/gophercloud/pagination", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gophercloud/gophercloud"], -) diff --git a/vendor/github.com/gophercloud/utils/env/BUILD.bazel b/vendor/github.com/gophercloud/utils/env/BUILD.bazel deleted file mode 100644 index f21de19a2..000000000 --- a/vendor/github.com/gophercloud/utils/env/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "env", - srcs = [ - "env.go", - "env_windows.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/utils/env", - importpath = "github.com/gophercloud/utils/env", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:windows": [ - "//vendor/golang.org/x/sys/windows", - "//vendor/golang.org/x/text/encoding/charmap", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/gophercloud/utils/gnocchi/BUILD.bazel b/vendor/github.com/gophercloud/utils/gnocchi/BUILD.bazel deleted file mode 100644 index ac62a763e..000000000 --- a/vendor/github.com/gophercloud/utils/gnocchi/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gnocchi", - srcs = [ - "client.go", - "results.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/utils/gnocchi", - importpath = "github.com/gophercloud/utils/gnocchi", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/gophercloud/gophercloud"], -) diff --git a/vendor/github.com/gophercloud/utils/internal/BUILD.bazel b/vendor/github.com/gophercloud/utils/internal/BUILD.bazel deleted file mode 100644 index 73bf60b9c..000000000 --- a/vendor/github.com/gophercloud/utils/internal/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "internal", - srcs = [ - "pkg.go", - "util.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/utils/internal", - importpath = "github.com/gophercloud/utils/internal", - visibility = ["//vendor/github.com/gophercloud/utils:__subpackages__"], - deps = ["//vendor/github.com/mitchellh/go-homedir"], -) diff --git a/vendor/github.com/gophercloud/utils/openstack/clientconfig/BUILD.bazel b/vendor/github.com/gophercloud/utils/openstack/clientconfig/BUILD.bazel deleted file mode 100644 index 0ddfd921b..000000000 --- a/vendor/github.com/gophercloud/utils/openstack/clientconfig/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "clientconfig", - srcs = [ - "doc.go", - "requests.go", - "results.go", - "utils.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gophercloud/utils/openstack/clientconfig", - importpath = "github.com/gophercloud/utils/openstack/clientconfig", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gophercloud/gophercloud", - "//vendor/github.com/gophercloud/gophercloud/openstack", - "//vendor/github.com/gophercloud/utils/env", - "//vendor/github.com/gophercloud/utils/gnocchi", - "//vendor/github.com/gophercloud/utils/internal", - "//vendor/github.com/hashicorp/go-uuid", - "//vendor/gopkg.in/yaml.v2:yaml_v2", - ], -) diff --git a/vendor/github.com/gorilla/websocket/BUILD.bazel b/vendor/github.com/gorilla/websocket/BUILD.bazel deleted file mode 100644 index 43311e8c3..000000000 --- a/vendor/github.com/gorilla/websocket/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "websocket", - srcs = [ - "client.go", - "compression.go", - "conn.go", - "doc.go", - "join.go", - "json.go", - "mask.go", - "prepared.go", - "proxy.go", - "server.go", - "tls_handshake.go", - "tls_handshake_116.go", - "util.go", - "x_net_proxy.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/gorilla/websocket", - importpath = "github.com/gorilla/websocket", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/hashicorp/go-uuid/BUILD.bazel b/vendor/github.com/hashicorp/go-uuid/BUILD.bazel deleted file mode 100644 index 3bda1d551..000000000 --- a/vendor/github.com/hashicorp/go-uuid/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-uuid", - srcs = ["uuid.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/hashicorp/go-uuid", - importpath = "github.com/hashicorp/go-uuid", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/imdario/mergo/BUILD.bazel b/vendor/github.com/imdario/mergo/BUILD.bazel deleted file mode 100644 index cc96857d2..000000000 --- a/vendor/github.com/imdario/mergo/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "mergo", - srcs = [ - "doc.go", - "map.go", - "merge.go", - "mergo.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/imdario/mergo", - importpath = "github.com/imdario/mergo", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/json-iterator/go/BUILD.bazel b/vendor/github.com/json-iterator/go/BUILD.bazel deleted file mode 100644 index 5e7169355..000000000 --- a/vendor/github.com/json-iterator/go/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go", - srcs = [ - "adapter.go", - "any.go", - "any_array.go", - "any_bool.go", - "any_float.go", - "any_int32.go", - "any_int64.go", - "any_invalid.go", - "any_nil.go", - "any_number.go", - "any_object.go", - "any_str.go", - "any_uint32.go", - "any_uint64.go", - "config.go", - "iter.go", - "iter_array.go", - "iter_float.go", - "iter_int.go", - "iter_object.go", - "iter_skip.go", - "iter_skip_strict.go", - "iter_str.go", - "jsoniter.go", - "pool.go", - "reflect.go", - "reflect_array.go", - "reflect_dynamic.go", - "reflect_extension.go", - "reflect_json_number.go", - "reflect_json_raw_message.go", - "reflect_map.go", - "reflect_marshaler.go", - "reflect_native.go", - "reflect_optional.go", - "reflect_slice.go", - "reflect_struct_decoder.go", - "reflect_struct_encoder.go", - "stream.go", - "stream_float.go", - "stream_int.go", - "stream_str.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/json-iterator/go", - importpath = "github.com/json-iterator/go", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/modern-go/concurrent", - "//vendor/github.com/modern-go/reflect2", - ], -) diff --git a/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/BUILD.bazel b/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/BUILD.bazel deleted file mode 100644 index 289eb1e3f..000000000 --- a/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "k8s_cni_cncf_io", - srcs = ["register.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io", - importpath = "github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1/BUILD.bazel b/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1/BUILD.bazel deleted file mode 100644 index 7c4a46255..000000000 --- a/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "k8s_cni_cncf_io", - srcs = [ - "doc.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1", - importpath = "github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io:k8s_cni_cncf_io", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/leodido/go-urn/BUILD.bazel b/vendor/github.com/leodido/go-urn/BUILD.bazel deleted file mode 100644 index 189bcb930..000000000 --- a/vendor/github.com/leodido/go-urn/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-urn", - srcs = [ - "machine.go", - "urn.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/leodido/go-urn", - importpath = "github.com/leodido/go-urn", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/mattn/go-isatty/BUILD.bazel b/vendor/github.com/mattn/go-isatty/BUILD.bazel deleted file mode 100644 index 3eee5792e..000000000 --- a/vendor/github.com/mattn/go-isatty/BUILD.bazel +++ /dev/null @@ -1,50 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-isatty", - srcs = [ - "doc.go", - "isatty_bsd.go", - "isatty_others.go", - "isatty_plan9.go", - "isatty_solaris.go", - "isatty_tcgets.go", - "isatty_windows.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/mattn/go-isatty", - importpath = "github.com/mattn/go-isatty", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:aix": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "//vendor/golang.org/x/sys/unix", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/mattn/go-sqlite3/BUILD.bazel b/vendor/github.com/mattn/go-sqlite3/BUILD.bazel deleted file mode 100644 index aa428c4c1..000000000 --- a/vendor/github.com/mattn/go-sqlite3/BUILD.bazel +++ /dev/null @@ -1,126 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-sqlite3", - srcs = [ - "backup.go", - "callback.go", - "convert.go", - "doc.go", - "error.go", - "sqlite3.go", - "sqlite3-binding.c", - "sqlite3-binding.h", - "sqlite3_context.go", - "sqlite3_func_crypt.go", - "sqlite3_go18.go", - "sqlite3_load_extension.go", - "sqlite3_opt_preupdate.go", - "sqlite3_opt_preupdate_omit.go", - "sqlite3_opt_unlock_notify.c", - "sqlite3_opt_userauth_omit.go", - "sqlite3_other.go", - "sqlite3_solaris.go", - "sqlite3_type.go", - "sqlite3_usleep_windows.go", - "sqlite3_windows.go", - "sqlite3ext.h", - "static_mock.go", - ], - cgo = True, - clinkopts = select({ - "@io_bazel_rules_go//go/platform:android": [ - "-ldl", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "-ldl", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "-lc", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "-lmingwex -lmingw32", - ], - "//conditions:default": [], - }) + select({ - "@io_bazel_rules_go//go/platform:linux_ppc64": [ - "-lpthread", - ], - "@io_bazel_rules_go//go/platform:linux_ppc64le": [ - "-lpthread", - ], - "//conditions:default": [], - }), - copts = [ - "-DHAVE_USLEEP=1", - "-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1", - "-DSQLITE_DISABLE_INTRINSIC", - "-DSQLITE_ENABLE_FTS3", - "-DSQLITE_ENABLE_FTS3_PARENTHESIS", - "-DSQLITE_ENABLE_FTS4_UNICODE61", - "-DSQLITE_ENABLE_RTREE", - "-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT", - "-DSQLITE_OMIT_DEPRECATED", - "-DSQLITE_THREADSAFE=1", - "-DSQLITE_TRACE_SIZE_LIMIT=15", - "-Wno-deprecated-declarations", - "-std=gnu99", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:android": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:js": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "-DHAVE_PREAD64=1 -DHAVE_PWRITE64=1", - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "-D__EXTENSIONS__=1", - "-Ivendor/github.com/mattn/go-sqlite3", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "-Ivendor/github.com/mattn/go-sqlite3", - "-fno-stack-check", - "-fno-stack-protector", - "-mno-stack-arg-probe", - ], - "//conditions:default": [], - }) + select({ - "@io_bazel_rules_go//go/platform:windows_386": [ - "-D_USE_32BIT_TIME_T", - ], - "//conditions:default": [], - }), - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/mattn/go-sqlite3", - importpath = "github.com/mattn/go-sqlite3", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel deleted file mode 100644 index 879d00897..000000000 --- a/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pbutil", - srcs = [ - "decode.go", - "doc.go", - "encode.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil", - importpath = "github.com/matttproud/golang_protobuf_extensions/pbutil", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/golang/protobuf/proto"], -) diff --git a/vendor/github.com/mitchellh/go-homedir/BUILD.bazel b/vendor/github.com/mitchellh/go-homedir/BUILD.bazel deleted file mode 100644 index 85b60896b..000000000 --- a/vendor/github.com/mitchellh/go-homedir/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-homedir", - srcs = ["homedir.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/mitchellh/go-homedir", - importpath = "github.com/mitchellh/go-homedir", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/moby/spdystream/BUILD.bazel b/vendor/github.com/moby/spdystream/BUILD.bazel deleted file mode 100644 index 9fc3add2b..000000000 --- a/vendor/github.com/moby/spdystream/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spdystream", - srcs = [ - "connection.go", - "handlers.go", - "priority.go", - "stream.go", - "utils.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/moby/spdystream", - importpath = "github.com/moby/spdystream", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/moby/spdystream/spdy"], -) diff --git a/vendor/github.com/moby/spdystream/spdy/BUILD.bazel b/vendor/github.com/moby/spdystream/spdy/BUILD.bazel deleted file mode 100644 index 6529bec35..000000000 --- a/vendor/github.com/moby/spdystream/spdy/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spdy", - srcs = [ - "dictionary.go", - "read.go", - "types.go", - "write.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/moby/spdystream/spdy", - importpath = "github.com/moby/spdystream/spdy", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/modern-go/concurrent/BUILD.bazel b/vendor/github.com/modern-go/concurrent/BUILD.bazel deleted file mode 100644 index d5b1f5a26..000000000 --- a/vendor/github.com/modern-go/concurrent/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "concurrent", - srcs = [ - "executor.go", - "go_above_19.go", - "go_below_19.go", - "log.go", - "unbounded_executor.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/modern-go/concurrent", - importpath = "github.com/modern-go/concurrent", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/modern-go/reflect2/BUILD.bazel b/vendor/github.com/modern-go/reflect2/BUILD.bazel deleted file mode 100644 index 5aad57838..000000000 --- a/vendor/github.com/modern-go/reflect2/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "reflect2", - srcs = [ - "go_above_118.go", - "go_above_19.go", - "go_below_118.go", - "reflect2.go", - "reflect2_amd64.s", - "reflect2_kind.go", - "relfect2_386.s", - "relfect2_amd64p32.s", - "relfect2_arm.s", - "relfect2_arm64.s", - "relfect2_mips64x.s", - "relfect2_mipsx.s", - "relfect2_ppc64x.s", - "relfect2_s390x.s", - "safe_field.go", - "safe_map.go", - "safe_slice.go", - "safe_struct.go", - "safe_type.go", - "type_map.go", - "unsafe_array.go", - "unsafe_eface.go", - "unsafe_field.go", - "unsafe_iface.go", - "unsafe_link.go", - "unsafe_map.go", - "unsafe_ptr.go", - "unsafe_slice.go", - "unsafe_struct.go", - "unsafe_type.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/modern-go/reflect2", - importpath = "github.com/modern-go/reflect2", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/nxadm/tail/BUILD.bazel b/vendor/github.com/nxadm/tail/BUILD.bazel deleted file mode 100644 index cf51c6ac8..000000000 --- a/vendor/github.com/nxadm/tail/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "tail", - srcs = [ - "tail.go", - "tail_posix.go", - "tail_windows.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/nxadm/tail", - importpath = "github.com/nxadm/tail", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/nxadm/tail/ratelimiter", - "//vendor/github.com/nxadm/tail/util", - "//vendor/github.com/nxadm/tail/watch", - "//vendor/gopkg.in/tomb.v1:tomb_v1", - ] + select({ - "@io_bazel_rules_go//go/platform:windows": [ - "//vendor/github.com/nxadm/tail/winfile", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/nxadm/tail/ratelimiter/BUILD.bazel b/vendor/github.com/nxadm/tail/ratelimiter/BUILD.bazel deleted file mode 100644 index 6e3eb4b54..000000000 --- a/vendor/github.com/nxadm/tail/ratelimiter/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ratelimiter", - srcs = [ - "leakybucket.go", - "memory.go", - "storage.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/nxadm/tail/ratelimiter", - importpath = "github.com/nxadm/tail/ratelimiter", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/nxadm/tail/util/BUILD.bazel b/vendor/github.com/nxadm/tail/util/BUILD.bazel deleted file mode 100644 index a7be97d6a..000000000 --- a/vendor/github.com/nxadm/tail/util/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "util", - srcs = ["util.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/nxadm/tail/util", - importpath = "github.com/nxadm/tail/util", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/nxadm/tail/watch/BUILD.bazel b/vendor/github.com/nxadm/tail/watch/BUILD.bazel deleted file mode 100644 index bfc647fa1..000000000 --- a/vendor/github.com/nxadm/tail/watch/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "watch", - srcs = [ - "filechanges.go", - "inotify.go", - "inotify_tracker.go", - "polling.go", - "watch.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/nxadm/tail/watch", - importpath = "github.com/nxadm/tail/watch", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/fsnotify/fsnotify", - "//vendor/github.com/nxadm/tail/util", - "//vendor/gopkg.in/tomb.v1:tomb_v1", - ], -) diff --git a/vendor/github.com/nxadm/tail/winfile/BUILD.bazel b/vendor/github.com/nxadm/tail/winfile/BUILD.bazel deleted file mode 100644 index 4ddf75680..000000000 --- a/vendor/github.com/nxadm/tail/winfile/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "winfile", - srcs = ["winfile.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/nxadm/tail/winfile", - importpath = "github.com/nxadm/tail/winfile", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/onsi/ginkgo/BUILD.bazel b/vendor/github.com/onsi/ginkgo/BUILD.bazel deleted file mode 100644 index d5f8f3725..000000000 --- a/vendor/github.com/onsi/ginkgo/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ginkgo", - srcs = ["ginkgo_dsl.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo", - importpath = "github.com/onsi/ginkgo", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/onsi/ginkgo/config", - "//vendor/github.com/onsi/ginkgo/internal/codelocation", - "//vendor/github.com/onsi/ginkgo/internal/global", - "//vendor/github.com/onsi/ginkgo/internal/remote", - "//vendor/github.com/onsi/ginkgo/internal/testingtproxy", - "//vendor/github.com/onsi/ginkgo/internal/writer", - "//vendor/github.com/onsi/ginkgo/reporters", - "//vendor/github.com/onsi/ginkgo/reporters/stenographer", - "//vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/config/BUILD.bazel b/vendor/github.com/onsi/ginkgo/config/BUILD.bazel deleted file mode 100644 index d56b19fb5..000000000 --- a/vendor/github.com/onsi/ginkgo/config/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "config", - srcs = ["config.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/config", - importpath = "github.com/onsi/ginkgo/config", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/onsi/ginkgo/formatter/BUILD.bazel b/vendor/github.com/onsi/ginkgo/formatter/BUILD.bazel deleted file mode 100644 index c711541a8..000000000 --- a/vendor/github.com/onsi/ginkgo/formatter/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "formatter", - srcs = ["formatter.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/formatter", - importpath = "github.com/onsi/ginkgo/formatter", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/codelocation/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/codelocation/BUILD.bazel deleted file mode 100644 index 1a57f64fc..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/codelocation/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "codelocation", - srcs = ["code_location.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/codelocation", - importpath = "github.com/onsi/ginkgo/internal/codelocation", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = ["//vendor/github.com/onsi/ginkgo/types"], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/containernode/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/containernode/BUILD.bazel deleted file mode 100644 index 8c2363c30..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/containernode/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "containernode", - srcs = ["container_node.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/containernode", - importpath = "github.com/onsi/ginkgo/internal/containernode", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/internal/leafnodes", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/failer/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/failer/BUILD.bazel deleted file mode 100644 index ac0dd41ce..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/failer/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "failer", - srcs = ["failer.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/failer", - importpath = "github.com/onsi/ginkgo/internal/failer", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = ["//vendor/github.com/onsi/ginkgo/types"], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/global/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/global/BUILD.bazel deleted file mode 100644 index f763da046..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/global/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "global", - srcs = ["init.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/global", - importpath = "github.com/onsi/ginkgo/internal/global", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/internal/failer", - "//vendor/github.com/onsi/ginkgo/internal/suite", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/leafnodes/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/leafnodes/BUILD.bazel deleted file mode 100644 index ded233335..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/leafnodes/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "leafnodes", - srcs = [ - "benchmarker.go", - "interfaces.go", - "it_node.go", - "measure_node.go", - "runner.go", - "setup_nodes.go", - "suite_nodes.go", - "synchronized_after_suite_node.go", - "synchronized_before_suite_node.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/leafnodes", - importpath = "github.com/onsi/ginkgo/internal/leafnodes", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/internal/codelocation", - "//vendor/github.com/onsi/ginkgo/internal/failer", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/remote/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/remote/BUILD.bazel deleted file mode 100644 index 4c4e92511..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/remote/BUILD.bazel +++ /dev/null @@ -1,62 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "remote", - srcs = [ - "aggregator.go", - "forwarding_reporter.go", - "output_interceptor.go", - "output_interceptor_unix.go", - "output_interceptor_win.go", - "server.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/remote", - importpath = "github.com/onsi/ginkgo/internal/remote", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/config", - "//vendor/github.com/onsi/ginkgo/internal/spec_iterator", - "//vendor/github.com/onsi/ginkgo/internal/writer", - "//vendor/github.com/onsi/ginkgo/reporters", - "//vendor/github.com/onsi/ginkgo/reporters/stenographer", - "//vendor/github.com/onsi/ginkgo/types", - ] + select({ - "@io_bazel_rules_go//go/platform:android": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "//vendor/github.com/nxadm/tail", - "//vendor/golang.org/x/sys/unix", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/onsi/ginkgo/internal/spec/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/spec/BUILD.bazel deleted file mode 100644 index 875e5c52c..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/spec/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spec", - srcs = [ - "spec.go", - "specs.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/spec", - importpath = "github.com/onsi/ginkgo/internal/spec", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/internal/containernode", - "//vendor/github.com/onsi/ginkgo/internal/leafnodes", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/spec_iterator/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/spec_iterator/BUILD.bazel deleted file mode 100644 index 73876002e..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/spec_iterator/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "spec_iterator", - srcs = [ - "index_computer.go", - "parallel_spec_iterator.go", - "serial_spec_iterator.go", - "sharded_parallel_spec_iterator.go", - "spec_iterator.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/spec_iterator", - importpath = "github.com/onsi/ginkgo/internal/spec_iterator", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = ["//vendor/github.com/onsi/ginkgo/internal/spec"], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/specrunner/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/specrunner/BUILD.bazel deleted file mode 100644 index 75aefb883..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/specrunner/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "specrunner", - srcs = [ - "random_id.go", - "spec_runner.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/specrunner", - importpath = "github.com/onsi/ginkgo/internal/specrunner", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/config", - "//vendor/github.com/onsi/ginkgo/internal/leafnodes", - "//vendor/github.com/onsi/ginkgo/internal/spec", - "//vendor/github.com/onsi/ginkgo/internal/spec_iterator", - "//vendor/github.com/onsi/ginkgo/internal/writer", - "//vendor/github.com/onsi/ginkgo/reporters", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/suite/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/suite/BUILD.bazel deleted file mode 100644 index dcbea5282..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/suite/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "suite", - srcs = ["suite.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/suite", - importpath = "github.com/onsi/ginkgo/internal/suite", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], - deps = [ - "//vendor/github.com/onsi/ginkgo/config", - "//vendor/github.com/onsi/ginkgo/internal/containernode", - "//vendor/github.com/onsi/ginkgo/internal/failer", - "//vendor/github.com/onsi/ginkgo/internal/leafnodes", - "//vendor/github.com/onsi/ginkgo/internal/spec", - "//vendor/github.com/onsi/ginkgo/internal/spec_iterator", - "//vendor/github.com/onsi/ginkgo/internal/specrunner", - "//vendor/github.com/onsi/ginkgo/internal/writer", - "//vendor/github.com/onsi/ginkgo/reporters", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/testingtproxy/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/testingtproxy/BUILD.bazel deleted file mode 100644 index ed7cf0e99..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/testingtproxy/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "testingtproxy", - srcs = ["testing_t_proxy.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/testingtproxy", - importpath = "github.com/onsi/ginkgo/internal/testingtproxy", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], -) diff --git a/vendor/github.com/onsi/ginkgo/internal/writer/BUILD.bazel b/vendor/github.com/onsi/ginkgo/internal/writer/BUILD.bazel deleted file mode 100644 index 0d09d1adc..000000000 --- a/vendor/github.com/onsi/ginkgo/internal/writer/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "writer", - srcs = [ - "fake_writer.go", - "writer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/internal/writer", - importpath = "github.com/onsi/ginkgo/internal/writer", - visibility = ["//vendor/github.com/onsi/ginkgo:__subpackages__"], -) diff --git a/vendor/github.com/onsi/ginkgo/reporters/BUILD.bazel b/vendor/github.com/onsi/ginkgo/reporters/BUILD.bazel deleted file mode 100644 index 14c49f35b..000000000 --- a/vendor/github.com/onsi/ginkgo/reporters/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "reporters", - srcs = [ - "default_reporter.go", - "fake_reporter.go", - "junit_reporter.go", - "reporter.go", - "teamcity_reporter.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/reporters", - importpath = "github.com/onsi/ginkgo/reporters", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/onsi/ginkgo/config", - "//vendor/github.com/onsi/ginkgo/reporters/stenographer", - "//vendor/github.com/onsi/ginkgo/types", - ], -) diff --git a/vendor/github.com/onsi/ginkgo/reporters/stenographer/BUILD.bazel b/vendor/github.com/onsi/ginkgo/reporters/stenographer/BUILD.bazel deleted file mode 100644 index ae3a2cb01..000000000 --- a/vendor/github.com/onsi/ginkgo/reporters/stenographer/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "stenographer", - srcs = [ - "console_logging.go", - "fake_stenographer.go", - "stenographer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/reporters/stenographer", - importpath = "github.com/onsi/ginkgo/reporters/stenographer", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/onsi/ginkgo/types"], -) diff --git a/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/BUILD.bazel b/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/BUILD.bazel deleted file mode 100644 index 9d7e8c44e..000000000 --- a/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-colorable", - srcs = [ - "colorable_others.go", - "colorable_windows.go", - "noncolorable.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable", - importpath = "github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:windows": [ - "//vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/BUILD.bazel b/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/BUILD.bazel deleted file mode 100644 index ca035b3ae..000000000 --- a/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-isatty", - srcs = [ - "doc.go", - "isatty_bsd.go", - "isatty_linux.go", - "isatty_solaris.go", - "isatty_windows.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty", - importpath = "github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:solaris": [ - "//vendor/golang.org/x/sys/unix", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/onsi/ginkgo/types/BUILD.bazel b/vendor/github.com/onsi/ginkgo/types/BUILD.bazel deleted file mode 100644 index cd5b28fe0..000000000 --- a/vendor/github.com/onsi/ginkgo/types/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "types", - srcs = [ - "code_location.go", - "deprecation_support.go", - "synchronization.go", - "types.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/ginkgo/types", - importpath = "github.com/onsi/ginkgo/types", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/onsi/ginkgo/config", - "//vendor/github.com/onsi/ginkgo/formatter", - ], -) diff --git a/vendor/github.com/onsi/gomega/BUILD.bazel b/vendor/github.com/onsi/gomega/BUILD.bazel deleted file mode 100644 index 5ebd2bf9d..000000000 --- a/vendor/github.com/onsi/gomega/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gomega", - srcs = [ - "gomega_dsl.go", - "matchers.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega", - importpath = "github.com/onsi/gomega", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/onsi/gomega/internal", - "//vendor/github.com/onsi/gomega/matchers", - "//vendor/github.com/onsi/gomega/types", - ], -) diff --git a/vendor/github.com/onsi/gomega/format/BUILD.bazel b/vendor/github.com/onsi/gomega/format/BUILD.bazel deleted file mode 100644 index 3c7d8322c..000000000 --- a/vendor/github.com/onsi/gomega/format/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "format", - srcs = ["format.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/format", - importpath = "github.com/onsi/gomega/format", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/onsi/gomega/internal/BUILD.bazel b/vendor/github.com/onsi/gomega/internal/BUILD.bazel deleted file mode 100644 index 3a6376b5c..000000000 --- a/vendor/github.com/onsi/gomega/internal/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "internal", - srcs = [ - "assertion.go", - "async_assertion.go", - "duration_bundle.go", - "gomega.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/internal", - importpath = "github.com/onsi/gomega/internal", - visibility = ["//vendor/github.com/onsi/gomega:__subpackages__"], - deps = ["//vendor/github.com/onsi/gomega/types"], -) diff --git a/vendor/github.com/onsi/gomega/internal/gutil/BUILD.bazel b/vendor/github.com/onsi/gomega/internal/gutil/BUILD.bazel deleted file mode 100644 index 9c9955f4c..000000000 --- a/vendor/github.com/onsi/gomega/internal/gutil/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "gutil", - srcs = [ - "post_ioutil.go", - "using_ioutil.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/internal/gutil", - importpath = "github.com/onsi/gomega/internal/gutil", - visibility = ["//vendor/github.com/onsi/gomega:__subpackages__"], -) diff --git a/vendor/github.com/onsi/gomega/matchers/BUILD.bazel b/vendor/github.com/onsi/gomega/matchers/BUILD.bazel deleted file mode 100644 index e9c8cbc69..000000000 --- a/vendor/github.com/onsi/gomega/matchers/BUILD.bazel +++ /dev/null @@ -1,68 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "matchers", - srcs = [ - "and.go", - "assignable_to_type_of_matcher.go", - "attributes_slice.go", - "be_a_directory.go", - "be_a_regular_file.go", - "be_an_existing_file.go", - "be_closed_matcher.go", - "be_element_of_matcher.go", - "be_empty_matcher.go", - "be_equivalent_to_matcher.go", - "be_false_matcher.go", - "be_identical_to.go", - "be_nil_matcher.go", - "be_numerically_matcher.go", - "be_sent_matcher.go", - "be_temporally_matcher.go", - "be_true_matcher.go", - "be_zero_matcher.go", - "consist_of.go", - "contain_element_matcher.go", - "contain_elements_matcher.go", - "contain_substring_matcher.go", - "equal_matcher.go", - "have_cap_matcher.go", - "have_each_matcher.go", - "have_field.go", - "have_http_body_matcher.go", - "have_http_header_with_value_matcher.go", - "have_http_status_matcher.go", - "have_key_matcher.go", - "have_key_with_value_matcher.go", - "have_len_matcher.go", - "have_occurred_matcher.go", - "have_prefix_matcher.go", - "have_suffix_matcher.go", - "have_value.go", - "match_error_matcher.go", - "match_json_matcher.go", - "match_regexp_matcher.go", - "match_xml_matcher.go", - "match_yaml_matcher.go", - "not.go", - "or.go", - "panic_matcher.go", - "receive_matcher.go", - "satisfy_matcher.go", - "semi_structured_data_support.go", - "succeed_matcher.go", - "type_support.go", - "with_transform.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/matchers", - importpath = "github.com/onsi/gomega/matchers", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/onsi/gomega/format", - "//vendor/github.com/onsi/gomega/internal/gutil", - "//vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph", - "//vendor/github.com/onsi/gomega/types", - "//vendor/golang.org/x/net/html/charset", - "//vendor/gopkg.in/yaml.v2:yaml_v2", - ], -) diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/BUILD.bazel b/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/BUILD.bazel deleted file mode 100644 index bbd890357..000000000 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "bipartitegraph", - srcs = [ - "bipartitegraph.go", - "bipartitegraphmatching.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph", - importpath = "github.com/onsi/gomega/matchers/support/goraph/bipartitegraph", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/onsi/gomega/matchers/support/goraph/edge", - "//vendor/github.com/onsi/gomega/matchers/support/goraph/node", - "//vendor/github.com/onsi/gomega/matchers/support/goraph/util", - ], -) diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/BUILD.bazel b/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/BUILD.bazel deleted file mode 100644 index 920844cf2..000000000 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "edge", - srcs = ["edge.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/matchers/support/goraph/edge", - importpath = "github.com/onsi/gomega/matchers/support/goraph/edge", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/onsi/gomega/matchers/support/goraph/node"], -) diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/node/BUILD.bazel b/vendor/github.com/onsi/gomega/matchers/support/goraph/node/BUILD.bazel deleted file mode 100644 index 3ed953bb7..000000000 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/node/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "node", - srcs = ["node.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/matchers/support/goraph/node", - importpath = "github.com/onsi/gomega/matchers/support/goraph/node", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/util/BUILD.bazel b/vendor/github.com/onsi/gomega/matchers/support/goraph/util/BUILD.bazel deleted file mode 100644 index 29ecaea35..000000000 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/util/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "util", - srcs = ["util.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/matchers/support/goraph/util", - importpath = "github.com/onsi/gomega/matchers/support/goraph/util", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/onsi/gomega/types/BUILD.bazel b/vendor/github.com/onsi/gomega/types/BUILD.bazel deleted file mode 100644 index b053a5e21..000000000 --- a/vendor/github.com/onsi/gomega/types/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "types", - srcs = ["types.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/onsi/gomega/types", - importpath = "github.com/onsi/gomega/types", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/openshift/api/apps/v1/BUILD.bazel b/vendor/github.com/openshift/api/apps/v1/BUILD.bazel deleted file mode 100644 index 2ad3981d9..000000000 --- a/vendor/github.com/openshift/api/apps/v1/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "apps", - srcs = [ - "consts.go", - "deprecated_consts.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/apps/v1", - importpath = "github.com/openshift/api/apps/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/gogo/protobuf/sortkeys", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/api/extensions/v1beta1", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - "//vendor/k8s.io/apimachinery/pkg/util/intstr", - ], -) diff --git a/vendor/github.com/openshift/api/authorization/v1/BUILD.bazel b/vendor/github.com/openshift/api/authorization/v1/BUILD.bazel deleted file mode 100644 index 4d240f8c5..000000000 --- a/vendor/github.com/openshift/api/authorization/v1/BUILD.bazel +++ /dev/null @@ -1,27 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "authorization", - srcs = [ - "codec.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/authorization/v1", - importpath = "github.com/openshift/api/authorization/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/openshift/api/pkg/serialization", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/api/rbac/v1:rbac", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/build/v1/BUILD.bazel b/vendor/github.com/openshift/api/build/v1/BUILD.bazel deleted file mode 100644 index 0293642d4..000000000 --- a/vendor/github.com/openshift/api/build/v1/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "build", - srcs = [ - "consts.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/build/v1", - importpath = "github.com/openshift/api/build/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/gogo/protobuf/sortkeys", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/config/v1/BUILD.bazel b/vendor/github.com/openshift/api/config/v1/BUILD.bazel deleted file mode 100644 index 1e2bb3cb9..000000000 --- a/vendor/github.com/openshift/api/config/v1/BUILD.bazel +++ /dev/null @@ -1,44 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "config", - srcs = [ - "doc.go", - "register.go", - "stringsource.go", - "types.go", - "types_apiserver.go", - "types_authentication.go", - "types_build.go", - "types_cluster_operator.go", - "types_cluster_version.go", - "types_console.go", - "types_dns.go", - "types_feature.go", - "types_image.go", - "types_image_content_policy.go", - "types_image_digest_mirror_set.go", - "types_image_tag_mirror_set.go", - "types_infrastructure.go", - "types_ingress.go", - "types_network.go", - "types_node.go", - "types_oauth.go", - "types_operatorhub.go", - "types_project.go", - "types_proxy.go", - "types_scheduling.go", - "types_tlssecurityprofile.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/config/v1", - importpath = "github.com/openshift/api/config/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/image/docker10/BUILD.bazel b/vendor/github.com/openshift/api/image/docker10/BUILD.bazel deleted file mode 100644 index b47bd01f5..000000000 --- a/vendor/github.com/openshift/api/image/docker10/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "docker10", - srcs = [ - "doc.go", - "register.go", - "types_docker.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/image/docker10", - importpath = "github.com/openshift/api/image/docker10", - visibility = ["//visibility:public"], - deps = [ - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/image/dockerpre012/BUILD.bazel b/vendor/github.com/openshift/api/image/dockerpre012/BUILD.bazel deleted file mode 100644 index fb095f079..000000000 --- a/vendor/github.com/openshift/api/image/dockerpre012/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "dockerpre012", - srcs = [ - "deepcopy.go", - "doc.go", - "register.go", - "types_docker.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/image/dockerpre012", - importpath = "github.com/openshift/api/image/dockerpre012", - visibility = ["//visibility:public"], - deps = [ - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/image/v1/BUILD.bazel b/vendor/github.com/openshift/api/image/v1/BUILD.bazel deleted file mode 100644 index 01730b261..000000000 --- a/vendor/github.com/openshift/api/image/v1/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "image", - srcs = [ - "consts.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/image/v1", - importpath = "github.com/openshift/api/image/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/gogo/protobuf/sortkeys", - "//vendor/github.com/openshift/api/image/docker10", - "//vendor/github.com/openshift/api/image/dockerpre012", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/network/v1/BUILD.bazel b/vendor/github.com/openshift/api/network/v1/BUILD.bazel deleted file mode 100644 index 59e55166f..000000000 --- a/vendor/github.com/openshift/api/network/v1/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "network", - srcs = [ - "constants.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/network/v1", - importpath = "github.com/openshift/api/network/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/oauth/v1/BUILD.bazel b/vendor/github.com/openshift/api/oauth/v1/BUILD.bazel deleted file mode 100644 index 967dc203b..000000000 --- a/vendor/github.com/openshift/api/oauth/v1/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "oauth", - srcs = [ - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/oauth/v1", - importpath = "github.com/openshift/api/oauth/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/api/extensions/v1beta1", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/pkg/serialization/BUILD.bazel b/vendor/github.com/openshift/api/pkg/serialization/BUILD.bazel deleted file mode 100644 index 8759ab761..000000000 --- a/vendor/github.com/openshift/api/pkg/serialization/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "serialization", - srcs = ["serialization.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/pkg/serialization", - importpath = "github.com/openshift/api/pkg/serialization", - visibility = ["//visibility:public"], - deps = ["//vendor/k8s.io/apimachinery/pkg/runtime"], -) diff --git a/vendor/github.com/openshift/api/project/v1/BUILD.bazel b/vendor/github.com/openshift/api/project/v1/BUILD.bazel deleted file mode 100644 index d98251d86..000000000 --- a/vendor/github.com/openshift/api/project/v1/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "project", - srcs = [ - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/project/v1", - importpath = "github.com/openshift/api/project/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/quota/v1/BUILD.bazel b/vendor/github.com/openshift/api/quota/v1/BUILD.bazel deleted file mode 100644 index aeac6d795..000000000 --- a/vendor/github.com/openshift/api/quota/v1/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "quota", - srcs = [ - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/quota/v1", - importpath = "github.com/openshift/api/quota/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/gogo/protobuf/sortkeys", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/route/v1/BUILD.bazel b/vendor/github.com/openshift/api/route/v1/BUILD.bazel deleted file mode 100644 index e86719704..000000000 --- a/vendor/github.com/openshift/api/route/v1/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "route", - srcs = [ - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/route/v1", - importpath = "github.com/openshift/api/route/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - "//vendor/k8s.io/apimachinery/pkg/util/intstr", - ], -) diff --git a/vendor/github.com/openshift/api/security/v1/BUILD.bazel b/vendor/github.com/openshift/api/security/v1/BUILD.bazel deleted file mode 100644 index 1d446a0be..000000000 --- a/vendor/github.com/openshift/api/security/v1/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "security", - srcs = [ - "consts.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/security/v1", - importpath = "github.com/openshift/api/security/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/template/v1/BUILD.bazel b/vendor/github.com/openshift/api/template/v1/BUILD.bazel deleted file mode 100644 index ee695b15c..000000000 --- a/vendor/github.com/openshift/api/template/v1/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "template", - srcs = [ - "codec.go", - "consts.go", - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/template/v1", - importpath = "github.com/openshift/api/template/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/gogo/protobuf/sortkeys", - "//vendor/github.com/openshift/api/pkg/serialization", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/api/user/v1/BUILD.bazel b/vendor/github.com/openshift/api/user/v1/BUILD.bazel deleted file mode 100644 index 7b9297677..000000000 --- a/vendor/github.com/openshift/api/user/v1/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "user", - srcs = [ - "doc.go", - "generated.pb.go", - "legacy.go", - "register.go", - "types.go", - "zz_generated.deepcopy.go", - "zz_generated.swagger_doc_generated.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/api/user/v1", - importpath = "github.com/openshift/api/user/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/gogo/protobuf/proto", - "//vendor/github.com/gogo/protobuf/sortkeys", - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/custom-resource-status/conditions/v1/BUILD.bazel b/vendor/github.com/openshift/custom-resource-status/conditions/v1/BUILD.bazel deleted file mode 100644 index 9fc9c71df..000000000 --- a/vendor/github.com/openshift/custom-resource-status/conditions/v1/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "conditions", - srcs = [ - "conditions.go", - "doc.go", - "types.go", - "zz_generated.deepcopy.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/custom-resource-status/conditions/v1", - importpath = "github.com/openshift/custom-resource-status/conditions/v1", - visibility = ["//visibility:public"], - deps = [ - "//vendor/k8s.io/api/core/v1:core", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta", - ], -) diff --git a/vendor/github.com/openshift/library-go/pkg/legacyapi/legacygroupification/BUILD.bazel b/vendor/github.com/openshift/library-go/pkg/legacyapi/legacygroupification/BUILD.bazel deleted file mode 100644 index 6e24eb9f7..000000000 --- a/vendor/github.com/openshift/library-go/pkg/legacyapi/legacygroupification/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "legacygroupification", - srcs = ["groupification.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/library-go/pkg/legacyapi/legacygroupification", - importpath = "github.com/openshift/library-go/pkg/legacyapi/legacygroupification", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/openshift/api/apps/v1:apps", - "//vendor/github.com/openshift/api/authorization/v1:authorization", - "//vendor/github.com/openshift/api/build/v1:build", - "//vendor/github.com/openshift/api/image/v1:image", - "//vendor/github.com/openshift/api/network/v1:network", - "//vendor/github.com/openshift/api/oauth/v1:oauth", - "//vendor/github.com/openshift/api/project/v1:project", - "//vendor/github.com/openshift/api/quota/v1:quota", - "//vendor/github.com/openshift/api/route/v1:route", - "//vendor/github.com/openshift/api/security/v1:security", - "//vendor/github.com/openshift/api/template/v1:template", - "//vendor/github.com/openshift/api/user/v1:user", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema", - ], -) diff --git a/vendor/github.com/openshift/library-go/pkg/template/generator/BUILD.bazel b/vendor/github.com/openshift/library-go/pkg/template/generator/BUILD.bazel deleted file mode 100644 index 5c3f2885b..000000000 --- a/vendor/github.com/openshift/library-go/pkg/template/generator/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "generator", - srcs = [ - "doc.go", - "expressionvalue.go", - "generator.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/library-go/pkg/template/generator", - importpath = "github.com/openshift/library-go/pkg/template/generator", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/BUILD.bazel b/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/BUILD.bazel deleted file mode 100644 index a7b9972b7..000000000 --- a/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "templateprocessing", - srcs = [ - "object.go", - "template.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/openshift/library-go/pkg/template/templateprocessing", - importpath = "github.com/openshift/library-go/pkg/template/templateprocessing", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/openshift/api/apps/v1:apps", - "//vendor/github.com/openshift/api/template/v1:template", - "//vendor/github.com/openshift/library-go/pkg/legacyapi/legacygroupification", - "//vendor/github.com/openshift/library-go/pkg/template/generator", - "//vendor/k8s.io/apimachinery/pkg/api/meta", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - "//vendor/k8s.io/apimachinery/pkg/labels", - "//vendor/k8s.io/apimachinery/pkg/runtime", - "//vendor/k8s.io/apimachinery/pkg/util/validation/field", - "//vendor/k8s.io/klog/v2:klog", - ], -) diff --git a/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/template.go b/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/template.go index 497c0e399..29de9d133 100644 --- a/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/template.go +++ b/vendor/github.com/openshift/library-go/pkg/template/templateprocessing/template.go @@ -186,7 +186,6 @@ func (p *Processor) EvaluateParameterSubstitution(params map[string]templatev1.P // // Example of Parameter expression: // - ${PARAMETER_NAME} -// func (p *Processor) SubstituteParameters(params map[string]templatev1.Parameter, item runtime.Object) (runtime.Object, error) { visitObjectStrings(item, func(in string) (string, bool) { return p.EvaluateParameterSubstitution(params, in) diff --git a/vendor/github.com/ovirt/go-ovirt/BUILD.bazel b/vendor/github.com/ovirt/go-ovirt/BUILD.bazel deleted file mode 100644 index 29f081152..000000000 --- a/vendor/github.com/ovirt/go-ovirt/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go-ovirt", - srcs = [ - "connection.go", - "error.go", - "helper.go", - "http.go", - "reader.go", - "readers.go", - "service.go", - "services.go", - "type.go", - "types.go", - "utils.go", - "version.go", - "writer.go", - "writers.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/ovirt/go-ovirt", - importpath = "github.com/ovirt/go-ovirt", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/pborman/uuid/BUILD.bazel b/vendor/github.com/pborman/uuid/BUILD.bazel deleted file mode 100644 index a744479f6..000000000 --- a/vendor/github.com/pborman/uuid/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "uuid", - srcs = [ - "dce.go", - "doc.go", - "hash.go", - "marshal.go", - "node.go", - "sql.go", - "time.go", - "util.go", - "uuid.go", - "version1.go", - "version4.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/pborman/uuid", - importpath = "github.com/pborman/uuid", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/google/uuid"], -) diff --git a/vendor/github.com/pkg/errors/BUILD.bazel b/vendor/github.com/pkg/errors/BUILD.bazel deleted file mode 100644 index 337720788..000000000 --- a/vendor/github.com/pkg/errors/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "errors", - srcs = [ - "errors.go", - "go113.go", - "stack.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/pkg/errors", - importpath = "github.com/pkg/errors", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/pkg/profile/BUILD.bazel b/vendor/github.com/pkg/profile/BUILD.bazel deleted file mode 100644 index 373070579..000000000 --- a/vendor/github.com/pkg/profile/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "profile", - srcs = [ - "mutex.go", - "mutex17.go", - "profile.go", - "trace.go", - "trace16.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/pkg/profile", - importpath = "github.com/pkg/profile", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel deleted file mode 100644 index b593ba7fe..000000000 --- a/vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel +++ /dev/null @@ -1,89 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "prometheus", - srcs = [ - "build_info_collector.go", - "collector.go", - "counter.go", - "desc.go", - "doc.go", - "expvar_collector.go", - "fnv.go", - "gauge.go", - "get_pid.go", - "go_collector.go", - "go_collector_go116.go", - "go_collector_latest.go", - "histogram.go", - "labels.go", - "metric.go", - "num_threads.go", - "observer.go", - "process_collector.go", - "process_collector_js.go", - "process_collector_other.go", - "process_collector_windows.go", - "registry.go", - "summary.go", - "timer.go", - "untyped.go", - "value.go", - "vec.go", - "wrap.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/client_golang/prometheus", - importpath = "github.com/prometheus/client_golang/prometheus", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/beorn7/perks/quantile", - "//vendor/github.com/cespare/xxhash/v2:xxhash", - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/prometheus/client_golang/prometheus/internal", - "//vendor/github.com/prometheus/client_model/go", - "//vendor/github.com/prometheus/common/expfmt", - "//vendor/github.com/prometheus/common/model", - "//vendor/google.golang.org/protobuf/types/known/timestamppb", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:android": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:illumos": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:plan9": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "//vendor/github.com/prometheus/procfs", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "//vendor/golang.org/x/sys/windows", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/prometheus/client_golang/prometheus/collectors/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/collectors/BUILD.bazel deleted file mode 100644 index b6a2f2dd2..000000000 --- a/vendor/github.com/prometheus/client_golang/prometheus/collectors/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "collectors", - srcs = [ - "collectors.go", - "dbstats_collector.go", - "expvar_collector.go", - "go_collector_go116.go", - "go_collector_latest.go", - "process_collector.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/client_golang/prometheus/collectors", - importpath = "github.com/prometheus/client_golang/prometheus/collectors", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/prometheus/client_golang/prometheus", - "//vendor/github.com/prometheus/client_golang/prometheus/internal", - ], -) diff --git a/vendor/github.com/prometheus/client_golang/prometheus/internal/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/internal/BUILD.bazel deleted file mode 100644 index 4dd30060b..000000000 --- a/vendor/github.com/prometheus/client_golang/prometheus/internal/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "internal", - srcs = [ - "almost_equal.go", - "difflib.go", - "go_collector_options.go", - "go_runtime_metrics.go", - "metric.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/client_golang/prometheus/internal", - importpath = "github.com/prometheus/client_golang/prometheus/internal", - visibility = ["//vendor/github.com/prometheus/client_golang/prometheus:__subpackages__"], - deps = [ - "//vendor/github.com/prometheus/client_model/go", - "//vendor/github.com/prometheus/common/model", - ], -) diff --git a/vendor/github.com/prometheus/client_golang/prometheus/promauto/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/promauto/BUILD.bazel deleted file mode 100644 index 8f7dcfe7c..000000000 --- a/vendor/github.com/prometheus/client_golang/prometheus/promauto/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "promauto", - srcs = ["auto.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/client_golang/prometheus/promauto", - importpath = "github.com/prometheus/client_golang/prometheus/promauto", - visibility = ["//visibility:public"], - deps = ["//vendor/github.com/prometheus/client_golang/prometheus"], -) diff --git a/vendor/github.com/prometheus/client_golang/prometheus/promhttp/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/promhttp/BUILD.bazel deleted file mode 100644 index e65f153d9..000000000 --- a/vendor/github.com/prometheus/client_golang/prometheus/promhttp/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "promhttp", - srcs = [ - "delegator.go", - "http.go", - "instrument_client.go", - "instrument_server.go", - "option.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/client_golang/prometheus/promhttp", - importpath = "github.com/prometheus/client_golang/prometheus/promhttp", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/prometheus/client_golang/prometheus", - "//vendor/github.com/prometheus/client_model/go", - "//vendor/github.com/prometheus/common/expfmt", - ], -) diff --git a/vendor/github.com/prometheus/client_model/go/BUILD.bazel b/vendor/github.com/prometheus/client_model/go/BUILD.bazel deleted file mode 100644 index 73fbf7bea..000000000 --- a/vendor/github.com/prometheus/client_model/go/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go", - srcs = ["metrics.pb.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/client_model/go", - importpath = "github.com/prometheus/client_model/go", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/golang/protobuf/ptypes/timestamp", - ], -) diff --git a/vendor/github.com/prometheus/common/expfmt/BUILD.bazel b/vendor/github.com/prometheus/common/expfmt/BUILD.bazel deleted file mode 100644 index 0751183ae..000000000 --- a/vendor/github.com/prometheus/common/expfmt/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "expfmt", - srcs = [ - "decode.go", - "encode.go", - "expfmt.go", - "openmetrics_create.go", - "text_create.go", - "text_parse.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/common/expfmt", - importpath = "github.com/prometheus/common/expfmt", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/golang/protobuf/proto", - "//vendor/github.com/matttproud/golang_protobuf_extensions/pbutil", - "//vendor/github.com/prometheus/client_model/go", - "//vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg", - "//vendor/github.com/prometheus/common/model", - ], -) diff --git a/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel b/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel deleted file mode 100644 index e6461efeb..000000000 --- a/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "goautoneg", - srcs = ["autoneg.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg", - importpath = "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg", - visibility = ["//vendor/github.com/prometheus/common:__subpackages__"], -) diff --git a/vendor/github.com/prometheus/common/model/BUILD.bazel b/vendor/github.com/prometheus/common/model/BUILD.bazel deleted file mode 100644 index c31b180de..000000000 --- a/vendor/github.com/prometheus/common/model/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "model", - srcs = [ - "alert.go", - "fingerprinting.go", - "fnv.go", - "labels.go", - "labelset.go", - "metric.go", - "model.go", - "signature.go", - "silence.go", - "time.go", - "value.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/common/model", - importpath = "github.com/prometheus/common/model", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/prometheus/procfs/BUILD.bazel b/vendor/github.com/prometheus/procfs/BUILD.bazel deleted file mode 100644 index 002624657..000000000 --- a/vendor/github.com/prometheus/procfs/BUILD.bazel +++ /dev/null @@ -1,102 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "procfs", - srcs = [ - "arp.go", - "buddyinfo.go", - "cmdline.go", - "cpuinfo.go", - "cpuinfo_armx.go", - "cpuinfo_mipsx.go", - "cpuinfo_ppcx.go", - "cpuinfo_riscvx.go", - "cpuinfo_s390x.go", - "cpuinfo_x86.go", - "crypto.go", - "doc.go", - "fs.go", - "fscache.go", - "ipvs.go", - "kernel_random.go", - "loadavg.go", - "mdstat.go", - "meminfo.go", - "mountinfo.go", - "mountstats.go", - "net_conntrackstat.go", - "net_dev.go", - "net_ip_socket.go", - "net_protocols.go", - "net_sockstat.go", - "net_softnet.go", - "net_tcp.go", - "net_udp.go", - "net_unix.go", - "net_xfrm.go", - "netstat.go", - "proc.go", - "proc_cgroup.go", - "proc_cgroups.go", - "proc_environ.go", - "proc_fdinfo.go", - "proc_io.go", - "proc_limits.go", - "proc_maps.go", - "proc_netstat.go", - "proc_ns.go", - "proc_psi.go", - "proc_smaps.go", - "proc_snmp.go", - "proc_snmp6.go", - "proc_stat.go", - "proc_status.go", - "proc_sys.go", - "schedstat.go", - "slab.go", - "softirqs.go", - "stat.go", - "swaps.go", - "vm.go", - "zoneinfo.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/procfs", - importpath = "github.com/prometheus/procfs", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/prometheus/procfs/internal/fs", - "//vendor/github.com/prometheus/procfs/internal/util", - ] + select({ - "@io_bazel_rules_go//go/platform:aix": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:android": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:darwin": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:dragonfly": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:freebsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:ios": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:linux": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:netbsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:openbsd": [ - "//vendor/golang.org/x/sys/unix", - ], - "@io_bazel_rules_go//go/platform:solaris": [ - "//vendor/golang.org/x/sys/unix", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/github.com/prometheus/procfs/internal/fs/BUILD.bazel b/vendor/github.com/prometheus/procfs/internal/fs/BUILD.bazel deleted file mode 100644 index 441219390..000000000 --- a/vendor/github.com/prometheus/procfs/internal/fs/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "fs", - srcs = ["fs.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/procfs/internal/fs", - importpath = "github.com/prometheus/procfs/internal/fs", - visibility = ["//vendor/github.com/prometheus/procfs:__subpackages__"], -) diff --git a/vendor/github.com/prometheus/procfs/internal/util/BUILD.bazel b/vendor/github.com/prometheus/procfs/internal/util/BUILD.bazel deleted file mode 100644 index a58dbee3b..000000000 --- a/vendor/github.com/prometheus/procfs/internal/util/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "util", - srcs = [ - "parse.go", - "readfile.go", - "sysreadfile.go", - "sysreadfile_compat.go", - "valueparser.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/prometheus/procfs/internal/util", - importpath = "github.com/prometheus/procfs/internal/util", - visibility = ["//vendor/github.com/prometheus/procfs:__subpackages__"], -) diff --git a/vendor/github.com/spf13/pflag/BUILD.bazel b/vendor/github.com/spf13/pflag/BUILD.bazel deleted file mode 100644 index 828034fe6..000000000 --- a/vendor/github.com/spf13/pflag/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "pflag", - srcs = [ - "bool.go", - "bool_slice.go", - "bytes.go", - "count.go", - "duration.go", - "duration_slice.go", - "flag.go", - "float32.go", - "float32_slice.go", - "float64.go", - "float64_slice.go", - "golangflag.go", - "int.go", - "int16.go", - "int32.go", - "int32_slice.go", - "int64.go", - "int64_slice.go", - "int8.go", - "int_slice.go", - "ip.go", - "ip_slice.go", - "ipmask.go", - "ipnet.go", - "string.go", - "string_array.go", - "string_slice.go", - "string_to_int.go", - "string_to_int64.go", - "string_to_string.go", - "uint.go", - "uint16.go", - "uint32.go", - "uint64.go", - "uint8.go", - "uint_slice.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/spf13/pflag", - importpath = "github.com/spf13/pflag", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/ugorji/go/codec/BUILD.bazel b/vendor/github.com/ugorji/go/codec/BUILD.bazel deleted file mode 100644 index 0e6144890..000000000 --- a/vendor/github.com/ugorji/go/codec/BUILD.bazel +++ /dev/null @@ -1,46 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "codec", - srcs = [ - "0_importpath.go", - "binc.go", - "cbor.go", - "decode.go", - "doc.go", - "encode.go", - "fast-path.generated.go", - "float.go", - "gen-helper.generated.go", - "goversion_arrayof_gte_go15.go", - "goversion_arrayof_lt_go15.go", - "goversion_fmt_time_gte_go15.go", - "goversion_fmt_time_lt_go15.go", - "goversion_makemap_gte_go19.go", - "goversion_makemap_lt_go19.go", - "goversion_maprange_lt_go112.go", - "goversion_unexportedembeddedptr_gte_go110.go", - "goversion_unexportedembeddedptr_lt_go110.go", - "goversion_unsupported_lt_go14.go", - "goversion_vendor_eq_go15.go", - "goversion_vendor_eq_go16.go", - "goversion_vendor_gte_go17.go", - "goversion_vendor_lt_go15.go", - "helper.go", - "helper.s", - "helper_internal.go", - "helper_not_unsafe.go", - "helper_unsafe.go", - "json.go", - "msgpack.go", - "reader.go", - "register_ext.go", - "rpc.go", - "simple.go", - "sort-slice.generated.go", - "writer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/ugorji/go/codec", - importpath = "github.com/ugorji/go/codec", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/vmware/govmomi/BUILD.bazel b/vendor/github.com/vmware/govmomi/BUILD.bazel deleted file mode 100644 index 30a5f3fb0..000000000 --- a/vendor/github.com/vmware/govmomi/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "govmomi", - srcs = ["client.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi", - importpath = "github.com/vmware/govmomi", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/session", - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/find/BUILD.bazel b/vendor/github.com/vmware/govmomi/find/BUILD.bazel deleted file mode 100644 index 4044b0a0d..000000000 --- a/vendor/github.com/vmware/govmomi/find/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "find", - srcs = [ - "doc.go", - "error.go", - "finder.go", - "recurser.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/find", - importpath = "github.com/vmware/govmomi/find", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/list", - "//vendor/github.com/vmware/govmomi/object", - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/list/BUILD.bazel b/vendor/github.com/vmware/govmomi/list/BUILD.bazel deleted file mode 100644 index 8f7a57bd1..000000000 --- a/vendor/github.com/vmware/govmomi/list/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "list", - srcs = [ - "lister.go", - "path.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/list", - importpath = "github.com/vmware/govmomi/list", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/nfc/BUILD.bazel b/vendor/github.com/vmware/govmomi/nfc/BUILD.bazel deleted file mode 100644 index 3f6b1d2b5..000000000 --- a/vendor/github.com/vmware/govmomi/nfc/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "nfc", - srcs = [ - "lease.go", - "lease_updater.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/nfc", - importpath = "github.com/vmware/govmomi/nfc", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/progress", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/object/BUILD.bazel b/vendor/github.com/vmware/govmomi/object/BUILD.bazel deleted file mode 100644 index ed02c654d..000000000 --- a/vendor/github.com/vmware/govmomi/object/BUILD.bazel +++ /dev/null @@ -1,74 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "object", - srcs = [ - "authorization_manager.go", - "authorization_manager_internal.go", - "cluster_compute_resource.go", - "common.go", - "compute_resource.go", - "custom_fields_manager.go", - "customization_spec_manager.go", - "datacenter.go", - "datastore.go", - "datastore_file.go", - "datastore_file_manager.go", - "datastore_path.go", - "diagnostic_log.go", - "diagnostic_manager.go", - "distributed_virtual_portgroup.go", - "distributed_virtual_switch.go", - "extension_manager.go", - "file_manager.go", - "folder.go", - "history_collector.go", - "host_account_manager.go", - "host_certificate_info.go", - "host_certificate_manager.go", - "host_config_manager.go", - "host_datastore_browser.go", - "host_datastore_system.go", - "host_date_time_system.go", - "host_firewall_system.go", - "host_network_system.go", - "host_service_system.go", - "host_storage_system.go", - "host_system.go", - "host_virtual_nic_manager.go", - "host_vsan_internal_system.go", - "host_vsan_system.go", - "namespace_manager.go", - "network.go", - "network_reference.go", - "opaque_network.go", - "option_manager.go", - "resource_pool.go", - "search_index.go", - "storage_pod.go", - "storage_resource_manager.go", - "task.go", - "types.go", - "virtual_app.go", - "virtual_device_list.go", - "virtual_disk_manager.go", - "virtual_disk_manager_internal.go", - "virtual_machine.go", - "vmware_distributed_virtual_switch.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/object", - importpath = "github.com/vmware/govmomi/object", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/nfc", - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/session", - "//vendor/github.com/vmware/govmomi/task", - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/progress", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/property/BUILD.bazel b/vendor/github.com/vmware/govmomi/property/BUILD.bazel deleted file mode 100644 index 924bfe14e..000000000 --- a/vendor/github.com/vmware/govmomi/property/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "property", - srcs = [ - "collector.go", - "filter.go", - "wait.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/property", - importpath = "github.com/vmware/govmomi/property", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/session/BUILD.bazel b/vendor/github.com/vmware/govmomi/session/BUILD.bazel deleted file mode 100644 index f7eaa5dff..000000000 --- a/vendor/github.com/vmware/govmomi/session/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "session", - srcs = [ - "keep_alive.go", - "manager.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/session", - importpath = "github.com/vmware/govmomi/session", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/session/keepalive", - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/session/keepalive/BUILD.bazel b/vendor/github.com/vmware/govmomi/session/keepalive/BUILD.bazel deleted file mode 100644 index db09e359a..000000000 --- a/vendor/github.com/vmware/govmomi/session/keepalive/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "keepalive", - srcs = ["handler.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/session/keepalive", - importpath = "github.com/vmware/govmomi/session/keepalive", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vapi/rest", - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/soap", - ], -) diff --git a/vendor/github.com/vmware/govmomi/task/BUILD.bazel b/vendor/github.com/vmware/govmomi/task/BUILD.bazel deleted file mode 100644 index 6291f9d62..000000000 --- a/vendor/github.com/vmware/govmomi/task/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "task", - srcs = [ - "error.go", - "wait.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/task", - importpath = "github.com/vmware/govmomi/task", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/property", - "//vendor/github.com/vmware/govmomi/vim25/progress", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vapi/internal/BUILD.bazel b/vendor/github.com/vmware/govmomi/vapi/internal/BUILD.bazel deleted file mode 100644 index c94f061bb..000000000 --- a/vendor/github.com/vmware/govmomi/vapi/internal/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "internal", - srcs = ["internal.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vapi/internal", - importpath = "github.com/vmware/govmomi/vapi/internal", - visibility = ["//vendor/github.com/vmware/govmomi/vapi:__subpackages__"], - deps = [ - "//vendor/github.com/vmware/govmomi/vim25/mo", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vapi/rest/BUILD.bazel b/vendor/github.com/vmware/govmomi/vapi/rest/BUILD.bazel deleted file mode 100644 index 43d1033e0..000000000 --- a/vendor/github.com/vmware/govmomi/vapi/rest/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "rest", - srcs = [ - "client.go", - "resource.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vapi/rest", - importpath = "github.com/vmware/govmomi/vapi/rest", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vapi/internal", - "//vendor/github.com/vmware/govmomi/vim25", - "//vendor/github.com/vmware/govmomi/vim25/soap", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/BUILD.bazel deleted file mode 100644 index 35bd2b946..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "vim25", - srcs = [ - "client.go", - "doc.go", - "retry.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25", - importpath = "github.com/vmware/govmomi/vim25", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - "//vendor/github.com/vmware/govmomi/vim25/xml", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/debug/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/debug/BUILD.bazel deleted file mode 100644 index 0e69b4d3e..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/debug/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "debug", - srcs = [ - "debug.go", - "file.go", - "log.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/debug", - importpath = "github.com/vmware/govmomi/vim25/debug", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/methods/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/methods/BUILD.bazel deleted file mode 100644 index cac240dce..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/methods/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "methods", - srcs = [ - "methods.go", - "service_content.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/methods", - importpath = "github.com/vmware/govmomi/vim25/methods", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/mo/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/mo/BUILD.bazel deleted file mode 100644 index 80de9a322..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/mo/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "mo", - srcs = [ - "ancestors.go", - "entity.go", - "extra.go", - "mo.go", - "reference.go", - "registry.go", - "retrieve.go", - "type_info.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/mo", - importpath = "github.com/vmware/govmomi/vim25/mo", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vim25/methods", - "//vendor/github.com/vmware/govmomi/vim25/soap", - "//vendor/github.com/vmware/govmomi/vim25/types", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/progress/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/progress/BUILD.bazel deleted file mode 100644 index d4fd9ca1e..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/progress/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "progress", - srcs = [ - "aggregator.go", - "doc.go", - "prefix.go", - "reader.go", - "report.go", - "scale.go", - "sinker.go", - "tee.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/progress", - importpath = "github.com/vmware/govmomi/vim25/progress", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/soap/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/soap/BUILD.bazel deleted file mode 100644 index b18193157..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/soap/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "soap", - srcs = [ - "client.go", - "debug.go", - "error.go", - "soap.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/soap", - importpath = "github.com/vmware/govmomi/vim25/soap", - visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/vmware/govmomi/vim25/debug", - "//vendor/github.com/vmware/govmomi/vim25/progress", - "//vendor/github.com/vmware/govmomi/vim25/types", - "//vendor/github.com/vmware/govmomi/vim25/xml", - ], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/types/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/types/BUILD.bazel deleted file mode 100644 index fe0e378fb..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/types/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "types", - srcs = [ - "base.go", - "enum.go", - "fault.go", - "helpers.go", - "if.go", - "registry.go", - "types.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/types", - importpath = "github.com/vmware/govmomi/vim25/types", - visibility = ["//visibility:public"], -) diff --git a/vendor/github.com/vmware/govmomi/vim25/xml/BUILD.bazel b/vendor/github.com/vmware/govmomi/vim25/xml/BUILD.bazel deleted file mode 100644 index e664d0777..000000000 --- a/vendor/github.com/vmware/govmomi/vim25/xml/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "xml", - srcs = [ - "extras.go", - "marshal.go", - "read.go", - "typeinfo.go", - "xml.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/github.com/vmware/govmomi/vim25/xml", - importpath = "github.com/vmware/govmomi/vim25/xml", - visibility = ["//visibility:public"], -) diff --git a/vendor/go.uber.org/atomic/BUILD.bazel b/vendor/go.uber.org/atomic/BUILD.bazel deleted file mode 100644 index f8c154fe1..000000000 --- a/vendor/go.uber.org/atomic/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "atomic", - srcs = [ - "bool.go", - "bool_ext.go", - "doc.go", - "duration.go", - "duration_ext.go", - "error.go", - "error_ext.go", - "float64.go", - "float64_ext.go", - "gen.go", - "int32.go", - "int64.go", - "nocmp.go", - "string.go", - "string_ext.go", - "uint32.go", - "uint64.go", - "value.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/atomic", - importpath = "go.uber.org/atomic", - visibility = ["//visibility:public"], -) diff --git a/vendor/go.uber.org/multierr/BUILD.bazel b/vendor/go.uber.org/multierr/BUILD.bazel deleted file mode 100644 index f6960cb6c..000000000 --- a/vendor/go.uber.org/multierr/BUILD.bazel +++ /dev/null @@ -1,13 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "multierr", - srcs = [ - "error.go", - "go113.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/multierr", - importpath = "go.uber.org/multierr", - visibility = ["//visibility:public"], - deps = ["//vendor/go.uber.org/atomic"], -) diff --git a/vendor/go.uber.org/zap/BUILD.bazel b/vendor/go.uber.org/zap/BUILD.bazel deleted file mode 100644 index 2b16624f6..000000000 --- a/vendor/go.uber.org/zap/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "zap", - srcs = [ - "array.go", - "config.go", - "doc.go", - "encoder.go", - "error.go", - "field.go", - "flag.go", - "global.go", - "global_go112.go", - "global_prego112.go", - "http_handler.go", - "level.go", - "logger.go", - "options.go", - "sink.go", - "stacktrace.go", - "sugar.go", - "time.go", - "writer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/zap", - importpath = "go.uber.org/zap", - visibility = ["//visibility:public"], - deps = [ - "//vendor/go.uber.org/atomic", - "//vendor/go.uber.org/multierr", - "//vendor/go.uber.org/zap/internal/bufferpool", - "//vendor/go.uber.org/zap/zapcore", - ], -) diff --git a/vendor/go.uber.org/zap/buffer/BUILD.bazel b/vendor/go.uber.org/zap/buffer/BUILD.bazel deleted file mode 100644 index 98be711a1..000000000 --- a/vendor/go.uber.org/zap/buffer/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "buffer", - srcs = [ - "buffer.go", - "pool.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/zap/buffer", - importpath = "go.uber.org/zap/buffer", - visibility = ["//visibility:public"], -) diff --git a/vendor/go.uber.org/zap/internal/bufferpool/BUILD.bazel b/vendor/go.uber.org/zap/internal/bufferpool/BUILD.bazel deleted file mode 100644 index b2c69a87e..000000000 --- a/vendor/go.uber.org/zap/internal/bufferpool/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "bufferpool", - srcs = ["bufferpool.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/zap/internal/bufferpool", - importpath = "go.uber.org/zap/internal/bufferpool", - visibility = ["//vendor/go.uber.org/zap:__subpackages__"], - deps = ["//vendor/go.uber.org/zap/buffer"], -) diff --git a/vendor/go.uber.org/zap/internal/color/BUILD.bazel b/vendor/go.uber.org/zap/internal/color/BUILD.bazel deleted file mode 100644 index d0aff8732..000000000 --- a/vendor/go.uber.org/zap/internal/color/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "color", - srcs = ["color.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/zap/internal/color", - importpath = "go.uber.org/zap/internal/color", - visibility = ["//vendor/go.uber.org/zap:__subpackages__"], -) diff --git a/vendor/go.uber.org/zap/internal/exit/BUILD.bazel b/vendor/go.uber.org/zap/internal/exit/BUILD.bazel deleted file mode 100644 index 023bccefb..000000000 --- a/vendor/go.uber.org/zap/internal/exit/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "exit", - srcs = ["exit.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/zap/internal/exit", - importpath = "go.uber.org/zap/internal/exit", - visibility = ["//vendor/go.uber.org/zap:__subpackages__"], -) diff --git a/vendor/go.uber.org/zap/zapcore/BUILD.bazel b/vendor/go.uber.org/zap/zapcore/BUILD.bazel deleted file mode 100644 index 2f704cfb2..000000000 --- a/vendor/go.uber.org/zap/zapcore/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "zapcore", - srcs = [ - "buffered_write_syncer.go", - "clock.go", - "console_encoder.go", - "core.go", - "doc.go", - "encoder.go", - "entry.go", - "error.go", - "field.go", - "hook.go", - "increase_level.go", - "json_encoder.go", - "level.go", - "level_strings.go", - "marshaler.go", - "memory_encoder.go", - "sampler.go", - "tee.go", - "write_syncer.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/go.uber.org/zap/zapcore", - importpath = "go.uber.org/zap/zapcore", - visibility = ["//visibility:public"], - deps = [ - "//vendor/go.uber.org/atomic", - "//vendor/go.uber.org/multierr", - "//vendor/go.uber.org/zap/buffer", - "//vendor/go.uber.org/zap/internal/bufferpool", - "//vendor/go.uber.org/zap/internal/color", - "//vendor/go.uber.org/zap/internal/exit", - ], -) diff --git a/vendor/golang.org/x/crypto/sha3/BUILD.bazel b/vendor/golang.org/x/crypto/sha3/BUILD.bazel deleted file mode 100644 index ad2ea3477..000000000 --- a/vendor/golang.org/x/crypto/sha3/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sha3", - srcs = [ - "doc.go", - "hashes.go", - "hashes_generic.go", - "keccakf.go", - "keccakf_amd64.go", - "keccakf_amd64.s", - "register.go", - "sha3.go", - "sha3_s390x.go", - "sha3_s390x.s", - "shake.go", - "shake_generic.go", - "xor.go", - "xor_generic.go", - "xor_unaligned.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/golang.org/x/crypto/sha3", - importpath = "golang.org/x/crypto/sha3", - visibility = ["//visibility:public"], - deps = select({ - "@io_bazel_rules_go//go/platform:s390x": [ - "//vendor/golang.org/x/sys/cpu", - ], - "//conditions:default": [], - }), -) diff --git a/vendor/golang.org/x/net/context/BUILD.bazel b/vendor/golang.org/x/net/context/BUILD.bazel deleted file mode 100644 index 187c8f53a..000000000 --- a/vendor/golang.org/x/net/context/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "context", - srcs = [ - "context.go", - "go17.go", - "go19.go", - "pre_go17.go", - "pre_go19.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/golang.org/x/net/context", - importpath = "golang.org/x/net/context", - visibility = ["//visibility:public"], -) diff --git a/vendor/golang.org/x/net/context/ctxhttp/BUILD.bazel b/vendor/golang.org/x/net/context/ctxhttp/BUILD.bazel deleted file mode 100644 index 16af91962..000000000 --- a/vendor/golang.org/x/net/context/ctxhttp/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "ctxhttp", - srcs = ["ctxhttp.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/golang.org/x/net/context/ctxhttp", - importpath = "golang.org/x/net/context/ctxhttp", - visibility = ["//visibility:public"], -) diff --git a/vendor/golang.org/x/net/html/BUILD.bazel b/vendor/golang.org/x/net/html/BUILD.bazel deleted file mode 100644 index 723073729..000000000 --- a/vendor/golang.org/x/net/html/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "html", - srcs = [ - "const.go", - "doc.go", - "doctype.go", - "entity.go", - "escape.go", - "foreign.go", - "node.go", - "parse.go", - "render.go", - "token.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/golang.org/x/net/html", - importpath = "golang.org/x/net/html", - visibility = ["//visibility:public"], - deps = ["//vendor/golang.org/x/net/html/atom"], -) diff --git a/vendor/golang.org/x/net/html/atom/BUILD.bazel b/vendor/golang.org/x/net/html/atom/BUILD.bazel deleted file mode 100644 index e18eb4799..000000000 --- a/vendor/golang.org/x/net/html/atom/BUILD.bazel +++ /dev/null @@ -1,12 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "atom", - srcs = [ - "atom.go", - "table.go", - ], - importmap = "github.com/konveyor/forklift-controller/vendor/golang.org/x/net/html/atom", - importpath = "golang.org/x/net/html/atom", - visibility = ["//visibility:public"], -) diff --git a/vendor/golang.org/x/net/html/charset/BUILD.bazel b/vendor/golang.org/x/net/html/charset/BUILD.bazel deleted file mode 100644 index c8d8ad3c1..000000000 --- a/vendor/golang.org/x/net/html/charset/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "charset", - srcs = ["charset.go"], - importmap = "github.com/konveyor/forklift-controller/vendor/golang.org/x/net/html/charset", - importpath = "golang.org/x/net/html/charset", - visibility = ["//visibility:public"], - deps = [ - "//vendor/golang.org/x/net/html", - "//vendor/golang.org/x/text/encoding", - "//vendor/golang.org/x/text/encoding/charmap", - "//vendor/golang.org/x/text/encoding/htmlindex", - "//vendor/golang.org/x/text/transform", - ], -) diff --git a/vendor/golang.org/x/net/html/doc.go b/vendor/golang.org/x/net/html/doc.go index 822ed42a0..7a96eae33 100644 --- a/vendor/golang.org/x/net/html/doc.go +++ b/vendor/golang.org/x/net/html/doc.go @@ -92,6 +92,21 @@ example, to process each anchor node in depth-first order: The relevant specifications include: https://html.spec.whatwg.org/multipage/syntax.html and https://html.spec.whatwg.org/multipage/syntax.html#tokenization + +# Security Considerations + +Care should be taken when parsing and interpreting HTML, whether full documents +or fragments, within the framework of the HTML specification, especially with +regard to untrusted inputs. + +This package provides both a tokenizer and a parser. Only the parser constructs +a DOM according to the HTML specification, resolving malformed and misplaced +tags where appropriate. The tokenizer simply tokenizes the HTML presented to it, +and as such does not resolve issues that may exist in the processed HTML, +producing a literal interpretation of the input. + +If your use case requires semantically well-formed HTML, as defined by the +WHATWG specifiction, the parser should be used rather than the tokenizer. */ package html // import "golang.org/x/net/html" diff --git a/vendor/golang.org/x/net/html/escape.go b/vendor/golang.org/x/net/html/escape.go index d85613962..04c6bec21 100644 --- a/vendor/golang.org/x/net/html/escape.go +++ b/vendor/golang.org/x/net/html/escape.go @@ -193,6 +193,87 @@ func lower(b []byte) []byte { return b } +// escapeComment is like func escape but escapes its input bytes less often. +// Per https://github.com/golang/go/issues/58246 some HTML comments are (1) +// meaningful and (2) contain angle brackets that we'd like to avoid escaping +// unless we have to. +// +// "We have to" includes the '&' byte, since that introduces other escapes. +// +// It also includes those bytes (not including EOF) that would otherwise end +// the comment. Per the summary table at the bottom of comment_test.go, this is +// the '>' byte that, per above, we'd like to avoid escaping unless we have to. +// +// Studying the summary table (and T actions in its '>' column) closely, we +// only need to escape in states 43, 44, 49, 51 and 52. State 43 is at the +// start of the comment data. State 52 is after a '!'. The other three states +// are after a '-'. +// +// Our algorithm is thus to escape every '&' and to escape '>' if and only if: +// - The '>' is after a '!' or '-' (in the unescaped data) or +// - The '>' is at the start of the comment data (after the opening ""); err != nil { diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go index ae24a6fdf..5c2a1f4ef 100644 --- a/vendor/golang.org/x/net/html/token.go +++ b/vendor/golang.org/x/net/html/token.go @@ -110,7 +110,7 @@ func (t Token) String() string { case SelfClosingTagToken: return "<" + t.tagString() + "/>" case CommentToken: - return "" + return "" case DoctypeToken: return "" } @@ -598,6 +598,11 @@ scriptDataDoubleEscapeEnd: // readComment reads the next comment token starting with "") return + } else if c == '-' { + dashCount = 1 + beginning = false + continue } } } @@ -645,6 +649,35 @@ func (z *Tokenizer) readComment() { } } +func (z *Tokenizer) calculateAbruptCommentDataEnd() int { + raw := z.Raw() + const prefixLen = len("