Skip to content

Commit 8b2ccbf

Browse files
committed
fix: add flock solution to check-licenses task also to "solve" race
1 parent ec1d39b commit 8b2ccbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

twoliter/embedded/Makefile.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,11 @@ run_cargo_deny="
998998
(cd /tmp/sources && cargo deny --all-features check --disable-fetch licenses bans sources)
999999
"
10001000
set +e
1001+
exec 9<>.cargo/vendor.lock
1002+
if ! flock -w 90 9; then
1003+
echo "failed to obtain lock" >&2
1004+
exit 1
1005+
fi
10011006
docker run --rm \
10021007
--network=none \
10031008
--user "$(id -u):$(id -g)" \

0 commit comments

Comments
 (0)