xref: /aosp_15_r20/external/bazelbuild-rules_go/tests/integration/popular_repos/popular_repos.bzl (revision 9bb1b549b6a84214c53be0924760be030e66b93a)
1# Copyright 2017 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#    http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15##############################
16# Generated file, do not edit!
17##############################
18
19load("@bazel_gazelle//:def.bzl", "go_repository")
20
21def _maybe(repo_rule, name, **kwargs):
22    if name not in native.existing_rules():
23        repo_rule(name = name, **kwargs)
24
25def popular_repos():
26    _maybe(
27        go_repository,
28        name = "org_golang_x_crypto",
29        importpath = "golang.org/x/crypto",
30        strip_prefix = "crypto-5ea612d1eb830b38bc4e914e37f55311eb58adce",
31        type = "zip",
32        urls = ["https://codeload.github.com/golang/crypto/zip/5ea612d1eb830b38bc4e914e37f55311eb58adce"],
33    )
34    _maybe(
35        go_repository,
36        name = "org_golang_x_net",
37        importpath = "golang.org/x/net",
38        commit = "e18ecbb051101a46fc263334b127c89bc7bff7ea",
39    )
40    _maybe(
41        go_repository,
42        name = "org_golang_x_sys",
43        importpath = "golang.org/x/sys",
44        commit = "390168757d9c647283340d526204e3409d5903f3",
45    )
46    _maybe(
47        go_repository,
48        name = "org_golang_x_text",
49        importpath = "golang.org/x/text",
50        commit = "e3aa4adf54f644ca0cb35f1f1fb19b239c40ef04",
51    )
52    _maybe(
53        go_repository,
54        name = "org_golang_x_tools",
55        importpath = "golang.org/x/tools",
56        commit = "fe37c9e135b934191089b245ac29325091462508",
57    )
58    _maybe(
59        go_repository,
60        name = "com_github_golang_glog",
61        importpath = "github.com/golang/glog",
62        commit = "23def4e6c14b4da8ac2ed8007337bc5eb5007998",
63    )
64    _maybe(
65        go_repository,
66        name = "org_golang_x_sync",
67        importpath = "golang.org/x/sync",
68        commit = "036812b2e83c0ddf193dd5a34e034151da389d09",
69    )
70    _maybe(
71        go_repository,
72        name = "org_golang_x_mod",
73        importpath = "golang.org/x/mod",
74        commit = "86c51ed26bb44749b7d60a57bab0e7524656fe8a",
75    )
76