0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00
libsignal/bin/verify_duplicate_crates
Jordan Rose 093d82115c GitHub: Make sure lockfiles don't get rewritten during testing
Otherwise, we're not testing what we think we're testing.
2021-09-27 14:44:12 -07:00

33 lines
748 B
Bash
Executable File

#!/bin/bash
#
# Copyright 2021 Signal Messenger, LLC.
# SPDX-License-Identifier: AGPL-3.0-only
#
# For now, these dependencies have conflicting requirements.
# You can use the `cargo tree` command below to see where they come from,
# and then document them here.
#
# getrandom + rand_core:
# curve25519-dalek + x25519-dalek use rand_core 0.5, snow uses rand_core 0.6
# serde:
# num_enum_derive indirectly uses serde in a proc-macro;
# unfortunately that shows up as a repeat here
EXPECTED="\
getrandom v0.1.16
getrandom v0.2.2
rand_core v0.5.1
rand_core v0.6.2
serde v1.0.123
serde v1.0.123"
if [[ $(cargo tree -d -e normal --workspace --locked --depth 0) != "${EXPECTED}" ]]; then
cargo tree -d -e normal --workspace --locked
fi