github.com/0xKiwi/rules_go@v0.24.3/tests/integration/popular_repos/popular_repos.bzl (about) 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 19 load("@bazel_gazelle//:def.bzl", "go_repository") 20 21 def _maybe(repo_rule, name, **kwargs): 22 if name not in native.existing_rules(): 23 repo_rule(name = name, **kwargs) 24 25 def popular_repos(): 26 _maybe( 27 go_repository, 28 name = "org_golang_x_crypto", 29 importpath = "golang.org/x/crypto", 30 strip_prefix = "crypto-de0752318171da717af4ce24d0a2e8626afaeb11", 31 type = "zip", 32 urls = ["https://codeload.github.com/golang/crypto/zip/de0752318171da717af4ce24d0a2e8626afaeb11"], 33 ) 34 _maybe( 35 go_repository, 36 name = "org_golang_x_net", 37 importpath = "golang.org/x/net", 38 commit = "57efc9c3d9f91fb3277f8da1cff370539c4d3dc5", 39 ) 40 _maybe( 41 go_repository, 42 name = "org_golang_x_sys", 43 importpath = "golang.org/x/sys", 44 commit = "acbc56fc7007d2a01796d5bde54f39e3b3e95945", 45 ) 46 _maybe( 47 go_repository, 48 name = "org_golang_x_text", 49 importpath = "golang.org/x/text", 50 commit = "a9a820217f98f7c8a207ec1e45a874e1fe12c478", 51 ) 52 _maybe( 53 go_repository, 54 name = "org_golang_x_tools", 55 importpath = "golang.org/x/tools", 56 commit = "11eff242d136374289f76e9313c76e9312391172", 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 = "112230192c580c3556b8cee6403af37a4fc5f28c", 69 ) 70 _maybe( 71 go_repository, 72 name = "org_golang_x_mod", 73 importpath = "golang.org/x/mod", 74 commit = "c0d644d00ab849f4506f17a98a5740bf0feff020", 75 )