mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 23:56:37 +00:00
Fix v1 manifest format for git and local path
Fixed #1815 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
f9f25c9d6f
commit
e1ec8a21da
4 changed files with 63 additions and 19 deletions
|
@ -45,17 +45,25 @@ cp -r manifests/workspace/* "$GIT"
|
|||
cd "$GIT"
|
||||
git add .
|
||||
git commit -m 'Update to workspace'
|
||||
git rev-parse HEAD
|
||||
)
|
||||
COMMIT_HASH="$(cd "$GIT" && git rev-parse HEAD)"
|
||||
|
||||
# Install binaries using `--git`
|
||||
# Install cargo-binstall using `--git`
|
||||
"./$1" binstall --force --git "file://$GIT" --no-confirm cargo-binstall
|
||||
|
||||
test_cargo_binstall_install
|
||||
|
||||
# Install binaries using `--git`
|
||||
cat "$CARGO_HOME/.crates.toml"
|
||||
grep -F "cargo-binstall 0.12.0 (git+file://$GIT#$COMMIT_HASH)" <"$CARGO_HOME/.crates.toml"
|
||||
|
||||
# Install cargo-binstall using `--git`
|
||||
"./$1" binstall --force --git "file://$GIT" --no-confirm cargo-watch
|
||||
|
||||
cargo_watch_version="$(cargo watch -V)"
|
||||
echo "$cargo_watch_version"
|
||||
|
||||
[ "$cargo_watch_version" = "cargo-watch 8.4.0" ]
|
||||
|
||||
cat "$CARGO_HOME/.crates.toml"
|
||||
grep -F "cargo-watch 8.4.0 (git+file://$GIT#$COMMIT_HASH)" <"$CARGO_HOME/.crates.toml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue