#!/usr/bin/env bash

set -ex

source hack/common.sh

# create symbolic link on glog package to avoid duplication
rm -rf ${KUBEVIRT_DIR}/vendor/github.com/golang/glog
mkdir -p ${KUBEVIRT_DIR}/vendor/github.com/golang
ln -s ../../../staging/src/github.com/golang/glog/ ${KUBEVIRT_DIR}/vendor/github.com/golang/glog

# create symbolic link on client-go package to avoid duplication
rm -rf ${KUBEVIRT_DIR}/vendor/kubevirt.io/client-go
mkdir -p ${KUBEVIRT_DIR}/vendor/kubevirt.io
ln -s ../../staging/src/kubevirt.io/client-go/ ${KUBEVIRT_DIR}/vendor/kubevirt.io/client-go
