gen-fakes shouldn't manage vendor/ on its own
Please don't delete my folders
#!/bin/sh
set -e
-[ ! -d "vendor" ] && go mod vendor -v
-
-cleanup() {
- rm -rf vendor/
-}
-trap "cleanup" EXIT SIGINT
+[ ! -d "vendor" ] && echo "$0 requires vendor/ folder, run 'go mod vendor'"
counterfeiter -o pkg/kube/controllers/fakes/manager.go vendor/sigs.k8s.io/controller-runtime/pkg/manager Manager
counterfeiter -o pkg/kube/controllers/fakes/client.go vendor/sigs.k8s.io/controller-runtime/pkg/client Client
counterfeiter -o pkg/bosh/manifest/fakes/resolver.go pkg/bosh/manifest/ Resolver
counterfeiter -o pkg/bosh/manifest/fakes/interpolator.go pkg/bosh/manifest/ Interpolator
-
-cleanup
