Skip to content

Commit

Permalink
Add bazelisk to path as Bazel
Browse files Browse the repository at this point in the history
Per bazelbuild/bazelisk#311 adding bazel to path Using a symlink of Bazelisk. 

Probably needs to either force itself if the link already exists.
  • Loading branch information
digitalcoyote committed Mar 31, 2022
1 parent 1c5ebf4 commit 46d85bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bazelisk/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ $InstallArgs = @{
URL64 = 'https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-windows-amd64.exe'
Checksum64 = '152daf14a6b5bc047eeb1bf26f49ed1b959395edcf975f763503d2c0fa8ed30598aaa7974cf18a3cc347f57f0a3125f5f29e3ff467b20ec2afa89b66cccc015a'
ChecksumType64 = 'sha512'
MaxIdleTime = 10000
}

Get-ChocolateyWebFile @InstallArgs
Get-ChocolateyWebFile @InstallArgs;
$bazel = 'bazel.exe';
$bazelisk = Join-Path (Join-Path $env:ChocolateyInstall (Join-Path 'lib' $env:ChocolateyPackageName)) 'bazelisk.exe';
Set-Location (Join-Path $env:ChocolateyInstall (Join-Path 'lib' $env:ChocolateyPackageName));
New-Item -ItemType HardLink -Name $bazel -Value $bazelisk -Force;

0 comments on commit 46d85bc

Please sign in to comment.