mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-09 00:31:35 +00:00
Using [`cargo-deny`](https://embarkstudios.github.io/cargo-deny/) to ensure that disallowed dependencies removed in #2423 do not accidentally make their way back in. `cargo-deny` subsumes the `cargo-audit` functionality, so switch to the `cargo-deny` version. Setting this up required explicitly stating the license which was not in some of our `Cargo.toml` files.
25 lines
610 B
Bash
Executable File
25 lines
610 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
# Note that this script runs as user 'vscode' during devcontainer setup.
|
|
|
|
# Rust global tools, needed to run CI scripts
|
|
"$HOME/.cargo/bin/cargo" install cargo-license@0.4.2 cargo-llvm-cov cargo-deny
|
|
"$HOME/.cargo/bin/rustup" component add llvm-tools-preview
|
|
|
|
# NPM global tools
|
|
sudo npm install -g azurite azure-functions-core-tools@4
|
|
|
|
# Pip global tools
|
|
pip install wheel
|
|
|
|
# Other binaries
|
|
echo "Installing azcopy ..."
|
|
tmpdir=$(mktemp -d)
|
|
pushd "$tmpdir"
|
|
wget https://aka.ms/downloadazcopy-v10-linux -O - | tar -zxv
|
|
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
|
|
popd
|
|
rm -rf "$tmpdir"
|