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:
Jiahao XU 2024-07-17 00:39:10 +10:00
parent f9f25c9d6f
commit e1ec8a21da
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928
4 changed files with 63 additions and 19 deletions

View file

@ -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"