Commit 193f518b authored by trinity-1686a's avatar trinity-1686a 🤖
Browse files

CI: make fail when new deps not in misc/Cargo.lock

Currently adding new deps can cause builds to not be reproducibles
because that new dependancies don't have their versions frozen in
misc/Cargo.lock.
This make so CI reject commits in that situation, with a message telling
what to do to fix the issue.
parent 1c08bb44
......@@ -16,6 +16,9 @@ rust-latest:
- cargo fmt -- --check
- cargo install cargo-audit
- cargo audit -D warnings
- cp misc/Cargo.lock Cargo.lock
- cargo fetch
- diff misc/Cargo.lock Cargo.lock || (echo 'Some new dependancies were added. Please run "./maint/reproducible_update_cargolock.sh" and commit.' && false)
tags:
- amd64
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment