@@ -436,3 +436,61 @@ http_archive(
436436 "https://download.savannah.gnu.org/releases/freetype/freetype-2.10.0.tar.gz" ,
437437 ],
438438)
439+
440+ load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
441+ http_archive (
442+ name = "io_bazel_rules_go" ,
443+ urls = [
444+ "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz" ,
445+ "https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz" ,
446+ ],
447+ sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d" ,
448+ )
449+ http_archive (
450+ name = "bazel_gazelle" ,
451+ urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz" ],
452+ sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687" ,
453+ )
454+ load ("@io_bazel_rules_go//go:deps.bzl" , "go_rules_dependencies" , "go_register_toolchains" )
455+ go_rules_dependencies ()
456+ go_register_toolchains ()
457+ load ("@bazel_gazelle//:deps.bzl" , "gazelle_dependencies" )
458+ gazelle_dependencies ()
459+
460+ # Load and call Gazelle dependencies
461+ load ("@bazel_gazelle//:deps.bzl" , "gazelle_dependencies" , "go_repository" )
462+ gazelle_dependencies ()
463+
464+ # Add a go repository
465+ go_repository (
466+ name = "com_github_pkg_errors" ,
467+ importpath = "github.com/pkg/errors" , # Import path used in the .go files
468+ tag = "v0.8.1" , # Specific tag, commits are also supported
469+ )
470+
471+ go_repository (
472+ name = "com_github_prometheus_client_golang" ,
473+ importpath = "github.com/prometheus/client_golang" , # Import path used in the .go files
474+ tag = "v0.9.3" , # Specific tag, commits are also supported
475+ )
476+
477+ go_repository (
478+ name = "com_github_modern_go_concurrent" ,
479+ importpath = "github.com/modern-go/concurrent" , # Import path used in the .go files
480+ tag = "1.0.3" , # Specific tag, commits are also supported
481+ )
482+ go_repository (
483+ name = "com_github_modern_go_reflect2" ,
484+ importpath = "github.com/modern-go/reflect2" , # Import path used in the .go files
485+ tag = "v1.0.1" , # Specific tag, commits are also supported
486+ )
487+ go_repository (
488+ name = "com_github_json_iterator_go" ,
489+ importpath = "github.com/json-iterator/go" , # Import path used in the .go files
490+ tag = "v1.1.6" , # Specific tag, commits are also supported
491+ )
492+ go_repository (
493+ name = "com_github_prometheus_common" ,
494+ importpath = "github.com/prometheus/common" , # Import path used in the .go files
495+ tag = "v0.4.1" , # Specific tag, commits are also supported
496+ )
0 commit comments