We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents edf3c0f + 94445b2 commit 9ad946eCopy full SHA for 9ad946e
hack/.vendor-helpers.sh
@@ -141,6 +141,10 @@ clean() {
141
echo -n 'pruning unused files, '
142
$find vendor -type f -name '*_test.go' -exec rm -v '{}' ';'
143
144
+ # These are the files that are left over after fix_rewritten_imports is run.
145
+ echo -n 'pruning .orig files, '
146
+ $find vendor -type f -name '*.orig' -exec rm -v '{}' ';'
147
+
148
echo done
149
}
150
@@ -151,5 +155,5 @@ fix_rewritten_imports () {
151
155
local target="vendor/src/$pkg"
152
156
153
157
echo "$pkg: fixing rewritten imports"
154
- $find "$target" -name \*.go -exec sed -i -e "s|\"${remove}|\"|g" {} \;
158
+ $find "$target" -name \*.go -exec sed -i'.orig' -e "s|\"${remove}|\"|g" {} \;
159
0 commit comments