From 31102923cbf444e759f7905b93ae6631ebe723a2 Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Fri, 18 Aug 2017 12:18:02 -0400 Subject: [PATCH] Add script for dep Signed-off-by: Andy Goldstein --- hack/dep-save.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 hack/dep-save.sh diff --git a/hack/dep-save.sh b/hack/dep-save.sh new file mode 100755 index 000000000..4810c421b --- /dev/null +++ b/hack/dep-save.sh @@ -0,0 +1,21 @@ +#!/bin/bash -e +# +# Copyright 2017 Heptio Inc. +# +# 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. + +dep ensure $@ +dep prune + +# remove files we don't want +find vendor \( -name BUILD -o -name .travis.yml -o -name '*_test.go' \) -exec rm {} \;