mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00

`bins::BinFile::new` does not include `binary_ext` in the `BinFile::base_name`. Also add regression e2e-test. Fixed #801 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
17 lines
427 B
Bash
17 lines
427 B
Bash
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
unset CARGO_INSTALL_ROOT
|
|
|
|
export CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
|
|
othertmpdir=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-test')
|
|
export PATH="$CARGO_HOME/bin:$othertmpdir/bin:$PATH"
|
|
|
|
mkdir -p "$othertmpdir/bin"
|
|
# Copy it to bin to test use of env var `CARGO`
|
|
cp "./$1" "$othertmpdir/bin/"
|
|
|
|
|
|
cargo binstall --no-confirm cargo-watch
|
|
cargo uninstall cargo-watch
|