• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2023 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5workspace(name = "go_chromium_org_chromiumos_config_ttcp")
6
7load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
8
9#  go rules
10
11http_archive(
12    name = "io_bazel_rules_go",
13    sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
14    urls = [
15        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
16        "https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
17    ],
18)
19
20load("@io_bazel_rules_go//go:deps.bzl",
21     "go_register_toolchains",
22     "go_rules_dependencies")
23
24go_rules_dependencies()
25
26go_register_toolchains(version = "1.20.5")
27
28# gazelle rules
29
30http_archive(
31    name = "bazel_gazelle",
32    sha256 = "29218f8e0cebe583643cbf93cae6f971be8a2484cdcfa1e45057658df8d54002",
33    urls = [
34        "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.32.0/bazel-gazelle-v0.32.0.tar.gz",
35        "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.32.0/bazel-gazelle-v0.32.0.tar.gz",
36    ],
37)
38
39load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
40gazelle_dependencies()
41
42# proto rules
43
44http_archive(
45    name = "com_google_protobuf",
46    strip_prefix = "protobuf-23.4",
47    sha256 = "a700a49470d301f1190a487a923b5095bf60f08f4ae4cac9f5f7c36883d17971",
48    urls = [
49        "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v23.4.tar.gz",
50        "https://github.com/protocolbuffers/protobuf/archive/v23.4.tar.gz",
51    ],
52)
53
54load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
55protobuf_deps()