Force overriding a symbolic link for Go testing,

otherwise repeating calls of `bazel test go:test` fail.

PiperOrigin-RevId: 249521520
This commit is contained in:
George Karpenkov 2019-05-22 14:32:51 -07:00 committed by TensorFlower Gardener
parent e5678b1560
commit 7b418e78cd

View File

@ -42,7 +42,7 @@ fi
export GOPATH="${TEST_TMPDIR}/go"
export GOCACHE="${TEST_TMPDIR}/cache"
mkdir -p "${GOPATH}/src/github.com/tensorflow"
ln -s "${PWD}" "${GOPATH}/src/github.com/tensorflow/tensorflow"
ln -s -f "${PWD}" "${GOPATH}/src/github.com/tensorflow/tensorflow"
# Ensure that the TensorFlow C library is accessible to the
# linker at build and run time.