Skip to content

Commit

Permalink
Merge pull request #141222 from ZhongRuoyu/cargo-deny-test
Browse files Browse the repository at this point in the history
cargo-deny: improve test
  • Loading branch information
chenrui333 authored Sep 2, 2023
2 parents ff6bf6b + a2e1cba commit ff1a937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/c/cargo-deny.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def install
# Show that we can use a different toolchain than the one provided by the `rust` formula.
# https://github.com/Homebrew/homebrew-core/pull/134074#pullrequestreview-1484979359
ENV["RUSTUP_INIT_SKIP_PATH_CHECK"] = "yes"
system "#{Formula["rustup-init"].bin}/rustup-init", "-y", "--no-modify-path"
rustup_init = Formula["rustup-init"].bin/"rustup-init"
system rustup_init, "-y", "--profile", "minimal", "--default-toolchain", "beta", "--no-modify-path"
ENV.prepend_path "PATH", HOMEBREW_CACHE/"cargo_cache/bin"
system "rustup", "default", "beta"

crate = testpath/"demo-crate"
mkdir crate do
Expand Down

0 comments on commit ff1a937

Please sign in to comment.