Downloads:

242,667

Downloads of v 1.0.0-rc3:

125

Last Update:

18 Sep 2019

Package Maintainer(s):

Software Author(s):

  • The Bazel Authors

Tags:

bazel build automation

bazel (Install)

This is a prerelease version of bazel (Install).

  • 1
  • 2
  • 3

1.0.0-rc3 | Updated: 18 Sep 2019

Downloads:

242,667

Downloads of v 1.0.0-rc3:

125

Maintainer(s):

Software Author(s):

  • The Bazel Authors

  • 1
  • 2
  • 3
bazel (Install) 1.0.0-rc3

This is a prerelease version of bazel (Install).

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details

To install bazel (Install), run the following command from the command line or from PowerShell:

>

To upgrade bazel (Install), run the following command from the command line or from PowerShell:

>

To uninstall bazel (Install), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade bazel -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade bazel -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure bazel installed
  win_chocolatey:
    name: bazel
    state: present
    version: 1.0.0-rc3
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'bazel' do
  action    :install
  version  '1.0.0-rc3'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: bazel,
    Version: 1.0.0-rc3,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller bazel
{
   Name     = 'bazel'
   Ensure   = 'Present'
   Version  = '1.0.0-rc3'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'bazel':
  provider => 'chocolatey',
  ensure   => '1.0.0-rc3',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install bazel version="1.0.0-rc3" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 18 Sep 2019.

Description

Build software of any size, quickly and reliably, just as engineers do at Google.

Bazel is Google's own build tool, now publicly available in Beta.

Bazel has built-in support for building both client and server software, including client applications for both Android and iOS platforms. It also provides an extensible framework that you can use to develop your own build rules.

Package parameters

Supply like --params="/option:'value' ..." (see docs for --params)

  • msys2Path (optional, defaults to c:\tools\msys64) - override this if msys2 is installed elsewhere.

tools\chocolateybeforemodify.ps1
write-host "Attempting to stop any running bazel processes, to allow upgrade"
try
{
  $running = get-process bazel
}
catch
{
  write-host "No running bazel processes to stop"
  $running = @()
}

if ($running)
{
  write-host "Stopping bazel processes"
  foreach($p in $running)
  {
    stop-process $p
    write-verbose "Stopped $($p.ProcessName) $($p.Id)"
  }
}
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors
$packageName = 'bazel'

$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$raw = get-content "$($toolsDir)\params.txt" | out-string
write-host "Content of $($toolsDir)\params.txt:"
write-host $raw
$params = $raw -split "`n"
write-host "url:  $($params[0].Trim())"
write-host "hash: $($params[1].Trim())"

$packageDir = Split-Path -parent $toolsDir

Install-ChocolateyZipPackage -PackageName "$packageName" `
  -Url64bit "$($params[0].Trim())" `
  -Checksum64 "$($params[1].Trim())" `
  -ChecksumType64 "sha256" `
  -UnzipLocation "$packageDir"

write-host @"
bazel installed to $packageDir

You also need, in your environment variables (adjust paths for your system):
  BAZEL_SH=c:\tools\msys64\usr\bin\bash.exe
  BAZEL_PYTHON=c:\tools\python2\python.exe

See also https://bazel.build/docs/windows.html
"@

tools\LICENSE
 
tools\params.txt
https://releases.bazel.build/1.0.0/rc3/bazel-1.0.0rc3-windows-x86_64.zip
07f311365522e93adbd3844c03322f4b3ec8733d67917b89ab0530603b7ba1ec
tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Download the zip file from github releases
Take its sha256
If it matches what is in package's chocolateyinstall.ps1, it's authentic.

Example:

```
invoke-webrequest https://github.com/bazelbuild/bazel/releases/0.3.1/bazel_0.3.1_windows_x86_64.zip -outfile bazel_0.3.1_windows_x86_64.zip
get-filehash bazel_0.3.1_windows_x86_64.zip -algorithm sha256
# compare that to what's in <package>/tools/chocolateyinstall.ps1
```

See also package build script `<repo>/scripts/packages/chocolatey/buildAndInstall.ps1`.

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
bazel (Install) 4.2.0 422 Monday, August 23, 2021 Approved
bazel (Install) 4.1.0 4401 Friday, May 21, 2021 Approved
bazel (Install) 4.0.0 17183 Thursday, January 21, 2021 Approved
bazel (Install) 3.7.2 1899 Sunday, December 20, 2020 Approved
bazel (Install) 3.7.1 20923 Wednesday, November 25, 2020 Approved
bazel (Install) 3.7.0 2047 Monday, October 26, 2020 Approved
bazel (Install) 3.6.0 371 Sunday, October 18, 2020 Approved
bazel (Install) 3.5.1 40 Sunday, October 18, 2020 Approved
bazel (Install) 3.5.0 14468 Monday, September 7, 2020 Approved

Discussion for the bazel (Install) Package

Ground Rules:

  • This discussion is only about bazel (Install) and the bazel (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or bazel (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus