diff --git a/hack/update-vendor.sh b/hack/update-vendor.sh new file mode 100755 index 000000000..65ae31090 --- /dev/null +++ b/hack/update-vendor.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Copyright 2017 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -o errexit +set -o nounset +set -o pipefail + +# This is a temporary hack, rewrite all `github.com/Sirupsen/logrus` to +# lower case. +# TODO(random-liu): Remove this after #106 is resolved. +ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. +cd ${ROOT} +find vendor/ -name *.go | xargs sed -i 's/"github.com\/Sirupsen\/logrus"/"github.com\/sirupsen\/logrus"/g' +echo "Please commit the change made by this file..." diff --git a/vendor/github.com/docker/docker/pkg/signal/trap.go b/vendor/github.com/docker/docker/pkg/signal/trap.go index 638a1ab66..548a5480e 100644 --- a/vendor/github.com/docker/docker/pkg/signal/trap.go +++ b/vendor/github.com/docker/docker/pkg/signal/trap.go @@ -11,7 +11,7 @@ import ( "syscall" "time" - "github.com/Sirupsen/logrus" + "github.com/sirupsen/logrus" "github.com/pkg/errors" ) diff --git a/vendor/github.com/kubernetes-incubator/cri-o/pkg/ocicni/ocicni.go b/vendor/github.com/kubernetes-incubator/cri-o/pkg/ocicni/ocicni.go index 3b2ed8beb..432e4cb6c 100644 --- a/vendor/github.com/kubernetes-incubator/cri-o/pkg/ocicni/ocicni.go +++ b/vendor/github.com/kubernetes-incubator/cri-o/pkg/ocicni/ocicni.go @@ -7,7 +7,7 @@ import ( "sort" "sync" - "github.com/Sirupsen/logrus" + "github.com/sirupsen/logrus" "github.com/containernetworking/cni/libcni" cnitypes "github.com/containernetworking/cni/pkg/types" "github.com/fsnotify/fsnotify"