Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
audacioustux committed Dec 5, 2023
1 parent a0d2a15 commit dcf30e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions src/cargo-bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

set -eax

sudo -E -u $_REMOTE_USER zsh <<EOF
if ${USE_BINSTALL:-false}; then
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm --no-symlinks ${CRATES:?}
else
cargo install ${CRATES:?}
fi
EOF
if ${USE_BINSTALL:-false}; then
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm --no-symlinks ${CRATES:?}
else
cargo install ${CRATES:?}
fi
4 changes: 2 additions & 2 deletions test/cargo-bin/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"ghcr.io/devcontainers/features/rust:1": {},
"cargo-bin": {
"crates": "cargo-watch systemfd"
"crates": "cargo-watch"
}
}
},
Expand All @@ -21,7 +21,7 @@
},
"ghcr.io/devcontainers/features/rust:1": {},
"cargo-bin": {
"crates": "cargo-watch systemfd",
"crates": "cargo-watch",
"use-binstall": false
}
}
Expand Down

0 comments on commit dcf30e3

Please sign in to comment.