2022-11-07 10:25:38 +00:00
|
|
|
# Copyright 2019 The Bazel Authors. All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
"""Dependency registration helpers for repositories which need to load bazel-skylib's gazelle plugin."""
|
|
|
|
|
2023-08-28 18:39:43 +00:00
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
2022-11-07 10:25:38 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
|
|
|
|
|
|
|
def bazel_skylib_gazelle_plugin_workspace():
|
|
|
|
"""Loads dependencies required to use skylib's gazelle plugin"""
|
|
|
|
bazel_skylib_workspace()
|
|
|
|
|
2024-05-01 21:24:18 +00:00
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "rules_license",
|
|
|
|
sha256 = "4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2022-11-07 10:25:38 +00:00
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "io_bazel_rules_go",
|
2023-11-02 14:38:36 +00:00
|
|
|
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
|
2022-11-07 10:25:38 +00:00
|
|
|
urls = [
|
2023-11-02 14:38:36 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
|
2022-11-07 10:25:38 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "bazel_gazelle",
|
2023-02-09 05:09:22 +00:00
|
|
|
sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
|
2022-11-07 10:25:38 +00:00
|
|
|
urls = [
|
2023-02-09 05:09:22 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
|
2022-11-07 10:25:38 +00:00
|
|
|
],
|
|
|
|
)
|