@@ -2,22 +2,22 @@ workspace(name = "bazel_skylib")
22
33load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
44load ("@bazel_tools//tools/build_defs/repo:utils.bzl" , "maybe" )
5+ load (":workspace.bzl" , "bazel_skylib_workspace" )
56
6- maybe (
7- name = "io_bazel_rules_go" ,
8- repo_rule = http_archive ,
9- sha256 = "685052b498b6ddfe562ca7a97736741d87916fe536623afb7da2824c0211c369" ,
10- urls = [
11- "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.33.0/rules_go-v0.33.0.zip" ,
12- "https://github.com/bazelbuild/rules_go/releases/download/v0.33.0/rules_go-v0.33.0.zip" ,
13- ],
7+ bazel_skylib_workspace ()
8+
9+ local_repository (
10+ name = "bazel_skylib_gazelle_plugin" ,
11+ path = "gazelle" ,
1412)
1513
16- load ("@io_bazel_rules_go//go:deps.bzl" , "go_register_toolchains" , "go_rules_dependencies" )
14+ load ("@bazel_skylib_gazelle_plugin//:workspace.bzl" , "bazel_skylib_gazelle_plugin_workspace" )
15+
16+ bazel_skylib_gazelle_plugin_workspace ()
1717
18- go_rules_dependencies ( )
18+ load ( "@bazel_skylib_gazelle_plugin//:setup.bzl" , "bazel_skylib_gazelle_plugin_setup" )
1919
20- go_register_toolchains ( version = "1.17.1" )
20+ bazel_skylib_gazelle_plugin_setup ( )
2121
2222# Below this line is for documentation generation only,
2323# and should thus not be included by dependencies on
@@ -64,22 +64,3 @@ maybe(
6464load ("//lib:unittest.bzl" , "register_unittest_toolchains" )
6565
6666register_unittest_toolchains ()
67-
68- # Provide a repository hint for Gazelle to inform it that the go package
69- # github.com/bazelbuild/rules_go is available from io_bazel_rules_go and it
70- # doesn't need to duplicatively fetch it.
71- # gazelle:repository go_repository name=io_bazel_rules_go importpath=github.com/bazelbuild/rules_go
72- http_archive (
73- name = "bazel_gazelle" ,
74- sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb" ,
75- urls = [
76- "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz" ,
77- "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz" ,
78- ],
79- )
80- # Another Gazelle repository hint.
81- # gazelle:repository go_repository name=bazel_gazelle importpath=github.com/bazelbuild/bazel-gazelle/testtools
82-
83- load ("@bazel_gazelle//:deps.bzl" , "gazelle_dependencies" )
84-
85- gazelle_dependencies ()
0 commit comments