Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #190 from phrase/fix-rev-extract
Browse files Browse the repository at this point in the history
Extract hash phraseapp-go hash from go.sum
  • Loading branch information
theSoenke authored Nov 25, 2019
2 parents 034e7fa + 01d6eb2 commit d1fb5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d1fb5ca

Please sign in to comment.