diff --git a/build/config.sh b/build/config.sh index b49f42d..fcfc68b 100644 --- a/build/config.sh +++ b/build/config.sh @@ -6,7 +6,7 @@ export BUILD_DIR=$(realpath $(dirname $0)/..) pushd $BUILD_DIR > /dev/null export GOVERSION=${GOVERSION:-1.11} export REVISION=${GIT_COMMIT:-$(git rev-parse HEAD)} -export LIBRARY_REVISION=$(cat Gopkg.lock | grep github.com/phrase/phraseapp-go -A 2 | tail -n 1 | cut -d '"' -f 2) +export LIBRARY_REVISION=$(cat go.sum | grep github.com/phrase/phraseapp-go | tail -n 1 | cut -d " " -f 2 | cut -d "-" -f 3 | cut -d "+" -f 1) export VERSION=$(cat ${wd}/.version) export SOURCE_DATE_EPOCH=$(git log -1 --format=%ct) export LAST_CHANGE=$(git log -1 --format=%cd)