mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-04 22:22:21 +02:00
ci: avoid race in wordlist-ordered task (#1085)
wordlist-ordered 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:
parent
69164cbf1a
commit
7ffb4e90cf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user