Skip to content

Commit

Permalink
docs: Use ex_doc version built for previous release
Browse files Browse the repository at this point in the history
If current release is not available, we use the previous release.
This can happen just as we release a new version of Erlang and
Elixir and other tools have not been updated to work with it yet.
  • Loading branch information
garazdawi committed May 31, 2024
1 parent 66020b9 commit f6fdaf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otp_build
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ do_update_ex_doc ()

OTP_VERSION=$(awk -F. '{ print $1 }' "$ERL_TOP/OTP_VERSION")
EX_DOC_VSN=$(curl --silent -qI https://github.com/elixir-lang/ex_doc/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}')
if grep "rc" "$ERL_TOP/OTP_VERSION" > /dev/null; then
if grep "rc" "$ERL_TOP/OTP_VERSION" > /dev/null || curl --silent -Li "https://github.com/elixir-lang/ex_doc/releases/download/${EX_DOC_VSN}/ex_doc_otp_${OTP_VERSION}" > /dev/null; then
OTP_VERSION="$(($OTP_VERSION-1))"
fi
if command -v sha1sum > /dev/null && command -v sha256sum > /dev/null; then
Expand Down

0 comments on commit f6fdaf5

Please sign in to comment.