diff options
author | Joe Fradley <joefradley@google.com> | 2023-11-20 12:23:47 -0800 |
---|---|---|
committer | Joe Fradley <joefradley@google.com> | 2023-11-20 17:01:29 -0800 |
commit | a7ef9ffeafcdd200a4e72377be5450f74aea1523 (patch) | |
tree | ff4f2948d51ace255426885412990bc9489474cb /gazelle/workspace.bzl | |
parent | f8aadd2ad5a51ac3187333bf589a754c5347d447 (diff) | |
parent | 9c9beee7411744869300f67a98d42f5081e62ab3 (diff) | |
download | bazel-skylib-a7ef9ffeafcdd200a4e72377be5450f74aea1523.tar.gz |
Upgrade bazel-skylib to 1.5.0
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update bazel-skylib
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
Bug: 312264245
Test: TreeHugger
Change-Id: Ib7260230fbf7caabf65b69aa18350df0ddee9670
Signed-off-by: Joe Fradley <joefradley@google.com>
Diffstat (limited to 'gazelle/workspace.bzl')
-rw-r--r-- | gazelle/workspace.bzl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gazelle/workspace.bzl b/gazelle/workspace.bzl new file mode 100644 index 0000000..0eca993 --- /dev/null +++ b/gazelle/workspace.bzl @@ -0,0 +1,43 @@ +# 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.""" + +load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") +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() + + maybe( + http_archive, + name = "io_bazel_rules_go", + sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3", + urls = [ + "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", + ], + ) + + maybe( + http_archive, + name = "bazel_gazelle", + sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d", + urls = [ + "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", + ], + ) |