Maintaining Bazel Chocolatey package on Windows
Stay organized with collections
Save and categorize content based on your preferences.
Report an issueopen_in_new
View sourceopen_in_new
Nightly
·
7.3
·
7.2
·
7.1
·
7.0
·
6.5
Prerequisites
You need:
- chocolatey package manager installed
- (to publish) a chocolatey API key granting you permission to publish the
bazel
package
- @petemounce currently
maintains this unofficial package.
- (to publish) to have set up that API key for the chocolatey source locally
via
choco apikey -k <your key here> -s https://chocolatey.org/
Build
Compile bazel with msys2 shell and compile.sh
.
pushd scripts/packages/chocolatey
./build.ps1 -version 0.3.2 -mode local
popd
Should result in scripts/packages/chocolatey/bazel.<version>.nupkg
being
created.
The build.ps1
script supports mode
values local
, rc
and release
.
Test
Build the package (with -mode local
)
- run a webserver (
python -m SimpleHTTPServer
in
scripts/packages/chocolatey
is convenient and starts one on
http://localhost:8000
)
Test the install
The test.ps1
should install the package cleanly (and error if it did not
install cleanly), then tell you what to do next.
Test the uninstall
choco uninstall bazel
# should remove bazel from the system
Chocolatey's moderation process automates checks here as well.
Release
Modify tools/parameters.json
for the new release's URI and checksum once the
release has been published to github releases.
./build.ps1 -version <version> -isRelease
./test.ps1 -version <version>
# if the test.ps1 passes
choco push bazel.x.y.z.nupkg --source https://chocolatey.org/
Chocolatey.org will then run automated checks and respond to the push via email
to the maintainers.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-13 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-13 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-13 UTC."],[],[]]