From ae3860b71ccf94e129a0178f64e04be7e64b5686 Mon Sep 17 00:00:00 2001 From: "Chris S. Kim" Date: Mon, 24 Oct 2022 11:19:31 -0400 Subject: [PATCH] Fix build-date.sh reference https://discuss.circleci.com/t/circle-working-directory-doesnt-expand/17007 --- .circleci/bash_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/bash_env.sh b/.circleci/bash_env.sh index 69004e7c8d..38bcfd5bd3 100644 --- a/.circleci/bash_env.sh +++ b/.circleci/bash_env.sh @@ -6,5 +6,5 @@ export GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true export GIT_IMPORT=github.com/hashicorp/consul/version # we're using this for build date because it's stable across platform builds # the env -i and -noprofile are used to ensure we don't try to recursively call this profile when starting bash -export GIT_DATE=$(env -i /bin/bash --noprofile -norc ${CIRCLE_WORKING_DIRECTORY}/build-support/scripts/build-date.sh) +export GIT_DATE=$(env -i /bin/bash --noprofile -norc /home/circleci/project/build-support/scripts/build-date.sh) export GOLDFLAGS="-X ${GIT_IMPORT}.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X ${GIT_IMPORT}.BuildDate=${GIT_DATE}"