ci: avoid race in wordlist-ordered task

The wordlist-ordered task is a dep of both spellcheck and
uncommitted, which run in parallel. go-task only writes the
checksum after a task's cmds finish, so both parents could start
the task concurrently: the first mv succeeded and removed
.wordlist.txt.new before the second mv ran, failing CI with
"No such file or directory".

Mark the task run: once so concurrent deps are deduped.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2026-08-27 14:19:15 +02:00
parent 69164cbf1a
commit a4b3542f28
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038

View File

@ -34,6 +34,7 @@ tasks:
wordlist-ordered:
desc: Order the word list file
run: once
cmds:
- LANG=C LC_ALL=C sort .wordlist.txt > .wordlist.txt.new
- mv -f .wordlist.txt.new .wordlist.txt