Skip to content

Commit da6c38a

Browse files
authored
Add wal2json debugging (#1906)
1 parent dc77c3a commit da6c38a

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

install/install-wal2json.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ docker_curl() {
1616
}
1717

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

0 commit comments

Comments
 (0)