Skip to content

Commit

Permalink
Add wal2json debugging (getsentry#1906)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre authored Jan 9, 2023
1 parent dc77c3a commit da6c38a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions install/install-wal2json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ docker_curl() {
}

if [[ $WAL2JSON_VERSION == "latest" ]]; then
VERSION=$(
docker_curl https://api.github.com/repos/getsentry/wal2json/releases/latest |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/'
)
if [[ ! $VERSION ]]; then
echo "Cannot find wal2json latest version"
exit 1
fi
# Hard-code this. Super-hacky. We were curling the GitHub API here but
# hitting rate limits in CI. This library hasn't seen a new release for a
# year and a half at time of writing.
#
# If you're reading this do us a favor and go check:
#
# https://github.com/getsentry/wal2json/releases
#
# If there's a new release can you update this please? If not maybe subscribe
# for notifications on the repo with "Watch > Custom > Releases". Together we
# can make a difference.
VERSION=0.0.2
else
VERSION=$WAL2JSON_VERSION
fi
Expand Down

0 comments on commit da6c38a

Please sign in to comment.