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]>
8 files changed
tree: a5ea3b45abcbfacd19a2dba4b09e077b74a4c1fd
  1. cros/
  2. test/
  3. third_party/
  4. toolchains/
  5. workspace_root/
  6. .bazelrc
  7. .gitignore
  8. common.bazelrc
  9. DIR_METADATA
  10. LICENSE
  11. OWNERS
  12. OWNERS.clover
  13. README.md
  14. run_tests.sh
  15. WORKSPACE.cros
README.md

Chrome OS Bazel Rules

Overview

This repository provides common rules and configuration for Bazel projects in Chrome OS.

Usage

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.

Documentation

The code is this directory is experimental and under active development. Stability and functionality is not guaranteed :)