| commit | 5c656db7bc9ab702107346549ce044ad1608ce10 | [log] [tgz] |
|---|---|---|
| author | Matt Stark <[email protected]> | Thu Feb 09 03:15:50 2023 |
| committer | Matt Stark <[email protected]> | Mon Feb 13 03:06:41 2023 |
| tree | a5ea3b45abcbfacd19a2dba4b09e077b74a4c1fd | |
| parent | 523641c6b9f59d4ee4e6849bd15681228c79762f [diff] |
Migrate go toolchain to bzlmod. This CL must be submitted at the same time as tg/1733742. BUG=b:268266357 TEST=tools/run_tests.sh Change-Id: I995af8275f7b7068d2c629f6b17b4651028fbd52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/rules_cros/+/4235002 Commit-Queue: Matt Stark <[email protected]> Tested-by: Matt Stark <[email protected]> Reviewed-by: Tim Bain <[email protected]> Reviewed-by: Shuhei Takahashi <[email protected]>
This repository provides common rules and configuration for Bazel projects in Chrome OS.
rules_cros is only expected to function inside the Chrome OS SDK. You may copy the following snippet into your WORKSPACE file and fix up the relative path in local_repository to point from your project to where rules_cros is checked out.
local_repository( name = "rules_cros", path = "../src/platform/rules_cros", ) load("@rules_cros//cros:repositories.bzl", "rules_cros_dependencies") rules_cros_dependencies()
You will also need to symlink .bazelrc in the root of your project to common.bazelrc in this repo. You can put additional settings in a file named user.bazelrc in the root of your WORKSPACE and it will automatically be imported by common.bazelrc.
The code is this directory is experimental and under active development. Stability and functionality is not guaranteed :)