fix manifest-templator build
The current way of building manifest-templator is that we `cd` to its
dir and then run `go build`. However, since the new dir doesn't include
vendor/, we fail to perform the build. With this patch, we build the
binary from top level - projects root.
@@ -7,7 +7,7 @@ CONTAINER_PREFIX="${CONTAINER_PREFIX:-quay.io/kubevirt}"
CONTAINER_TAG="${CONTAINER_TAG:-latest}"
IMAGE_PULL_POLICY="${IMAGE_PULL_POLICY:-Always}"
-(cd ${PROJECT_ROOT}/tools/manifest-templator/ && go build)
+go build -o ${PROJECT_ROOT}/tools/manifest-templator/manifest-templator github.com/kubevirt/cluster-network-addons-operator/tools/manifest-templator
templates=$(cd ${PROJECT_ROOT}/templates && find . -type f -name "*.yaml.in")
for template in $templates; do
