Skip to content

Commit

Permalink
Only set Cargo credential process on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 16, 2024
1 parent 28a2a1f commit e66b4ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/tasks/rust.rake
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ task :rust => [:'brew:casks_and_formulae', :sccache] do
add_line_to_file bash_environment, 'export CXX_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc'

FileUtils.mkdir_p ENV.fetch('CARGO_HOME')
File.write "#{ENV.fetch('CARGO_HOME')}/config", <<~TOML
[unstable]
credential-process = true
cargo_config = <<~TOML
[net]
git-fetch-with-cli = true
TOML
cargo_config += <<~TOML if macos?
[registry]
credential-process = "cargo:macos-keychain"
[net]
git-fetch-with-cli = true
TOML
File.write "#{ENV.fetch('CARGO_HOME')}/config", cargo_config

if macos?
defaults 'com.macromates.TextMate' do
Expand Down

0 comments on commit e66b4ee

Please sign in to comment.