Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions twoliter/embedded/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,24 @@ if [[ -d ${migrations_root} ]]; then
done
fi
# Third pass: Check for missing version transitions in Release.toml
mapfile -t transitions < <(grep -oP '\(\K[0-9]+\.[0-9]+\.[0-9]+,\s*[0-9]+\.[0-9]+\.[0-9]+(?=\))' Release.toml | sort -V)
if [[ ${#transitions[@]} -gt 0 ]]; then
prev_to=""
for transition in "${transitions[@]}"; do
from=$(echo "${transition}" | cut -d',' -f1 | tr -d ' ')
to=$(echo "${transition}" | cut -d',' -f2 | tr -d ' ')
if [[ -n "${prev_to}" && "${prev_to}" != "${from}" ]]; then
problems+=("Missing version transition: (${prev_to}, ${from})")
fi
prev_to="${to}"
done
fi
# Rattle off whatever we found
if [[ ${#problems[@]} -gt 0 ]]; then
Expand Down
Loading