1
0
Fork 0

pin the 3rd party binary versions in the VERSIONS file (#3854)

This commit is contained in:
Wilfried Goesgens 2017-12-06 14:09:08 +01:00 committed by Jan
parent 9a5cd393e0
commit 879876c73d
3 changed files with 12 additions and 13 deletions

View File

@ -675,9 +675,8 @@ if test -n "${DOWNLOAD_SYNCER_USER}"; then
# shellcheck disable=SC2064 # shellcheck disable=SC2064
trap "curl -s -X DELETE \"https://$DOWNLOAD_SYNCER_USER@api.github.com/authorizations/${OAUTH_ID}\"" EXIT trap "curl -s -X DELETE \"https://$DOWNLOAD_SYNCER_USER@api.github.com/authorizations/${OAUTH_ID}\"" EXIT
if test -f "${SRC}/SYNCER_REV"; then SYNCER_REV=$(grep "SYNCER_REV" "${SRC}/VERSIONS" |sed 's;.*"\([0-9a-zA-Z.]*\)".*;\1;')
SYNCER_REV=$(cat "${SRC}/SYNCER_REV") if test "${SYNCER_REV}" == "latest"; then
else
SYNCER_REV=$(curl -s "https://api.github.com/repos/arangodb/arangosync/releases?access_token=${OAUTH_TOKEN}" | \ SYNCER_REV=$(curl -s "https://api.github.com/repos/arangodb/arangosync/releases?access_token=${OAUTH_TOKEN}" | \
grep tag_name | \ grep tag_name | \
head -n 1 | \ head -n 1 | \
@ -739,9 +738,8 @@ if test -n "${DOWNLOAD_SYNCER_USER}"; then
fi fi
if test "${DOWNLOAD_STARTER}" == 1; then if test "${DOWNLOAD_STARTER}" == 1; then
if test -f "${SRC}/STARTER_REV"; then STARTER_REV=$(grep "STARTER_REV" "${SRC}/VERSIONS" |sed 's;.*"\([0-9a-zA-Z.]*\)".*;\1;')
STARTER_REV=$(cat "${SRC}/STARTER_REV") if test "${STARTER_REV}" == "latest"; then
else
# we utilize https://developer.github.com/v3/repos/ to get the newest release: # we utilize https://developer.github.com/v3/repos/ to get the newest release:
STARTER_REV=$(curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \ STARTER_REV=$(curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \
grep tag_name | \ grep tag_name | \

View File

@ -193,8 +193,7 @@ if test -z "${SYNCER_REV}"; then
exit 1 exit 1
fi fi
echo "${SYNCER_REV}" > SYNCER_REV sed -i VERSIONS -e "s;SYNCER_REV.*;SYNCER_REV \"${SYNCER_REV}\";"
GITSHA=$(git log -n1 --pretty='%h') GITSHA=$(git log -n1 --pretty='%h')
if git describe --exact-match --tags "${GITSHA}"; then if git describe --exact-match --tags "${GITSHA}"; then
@ -261,10 +260,11 @@ if [ "$LINT" == "1" ]; then
fi fi
# we utilize https://developer.github.com/v3/repos/ to get the newest release of the arangodb starter: # we utilize https://developer.github.com/v3/repos/ to get the newest release of the arangodb starter:
curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \ STARTER_REV=$(curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \
grep tag_name | \ grep tag_name | \
head -n 1 | \ head -n 1 | \
${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;' > STARTER_REV ${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;')
sed -i VERSIONS -e "s;STARTER_REV.*;STARTER_REV \"${STARTER_REV}\";"
git add -f \ git add -f \
README \ README \
@ -276,8 +276,7 @@ git add -f \
lib/Basics/voc-errors.cpp \ lib/Basics/voc-errors.cpp \
js/common/bootstrap/errors.js \ js/common/bootstrap/errors.js \
CMakeLists.txt \ CMakeLists.txt \
STARTER_REV \ VERSIONS
SYNCER_REV
if [ "$EXAMPLES" == "1" ]; then if [ "$EXAMPLES" == "1" ]; then
echo "EXAMPLES" echo "EXAMPLES"

View File

@ -1,7 +1,9 @@
STARTER_REV "latest"
SYNCER_REV "latest"
GSEARCH_ID_HTTP "010085642145132923492:fixi4yzeiz8" GSEARCH_ID_HTTP "010085642145132923492:fixi4yzeiz8"
GSEARCH_ID_AQL "010085642145132923492:6ymjhhr677k" GSEARCH_ID_AQL "010085642145132923492:6ymjhhr677k"
GSEARCH_ID_Manual "010085642145132923492:djexw6vlsgo" GSEARCH_ID_Manual "010085642145132923492:djexw6vlsgo"
GSEARCH_ID_Cookbook "010085642145132923492:nknyifjn7tu" GSEARCH_ID_Cookbook "010085642145132923492:nknyifjn7tu"
GCHANGE_FREQ "daily" GCHANGE_FREQ "daily"
GPRIORITY "0.3" GPRIORITY "0.3"
BROWSEABLE_VERSIONS "'devel', '3.2', '3.1', '3.0', '2.8'" BROWSEABLE_VERSIONS "'devel', '3.2', '3.1', '3.0', '2.8'"