Skip to content

Commit

Permalink
Merge pull request #33 from digitalcoyote/Bazel
Browse files Browse the repository at this point in the history
Add bazelisk to path as Bazel
  • Loading branch information
digitalcoyote authored Mar 31, 2022
2 parents 1c5ebf4 + 46d85bc commit 06ac4c4
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 06ac4c4

Please sign in to comment.