|
| 1 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file", "http_jar") |
| 2 | + |
| 3 | +#-------- |
| 4 | +# Go |
| 5 | +#-------- |
| 6 | +## rules_go |
| 7 | +http_archive( |
| 8 | + name = "io_bazel_rules_go", |
| 9 | + sha256 = "f2dcd210c7095febe54b804bb1cd3a58fe8435a909db2ec04e31542631cf715c", |
| 10 | + urls = [ |
| 11 | + "https://github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip", |
| 12 | + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip", |
| 13 | + ], |
| 14 | +) |
| 15 | + |
| 16 | +http_archive( |
| 17 | + name = "bazel_gazelle", |
| 18 | + sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb", |
| 19 | + urls = [ |
| 20 | + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", |
| 21 | + "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", |
| 22 | + ], |
| 23 | +) |
| 24 | + |
| 25 | +load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| 26 | +load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 27 | +load("//:deps.bzl", "go_dependencies") |
| 28 | + |
| 29 | +# gazelle:repository_macro deps.bzl%go_dependencies |
| 30 | +go_dependencies() |
| 31 | + |
| 32 | +go_rules_dependencies() |
| 33 | + |
| 34 | +go_register_toolchains(version = "1.17.6") |
| 35 | + |
| 36 | +gazelle_dependencies() |
| 37 | + |
| 38 | +#------------ |
| 39 | +# Bazel tools |
| 40 | +#------------ |
| 41 | +# buildifier |
| 42 | +http_file( |
| 43 | + name = "buildifier", |
| 44 | + executable = True, |
| 45 | + sha256 = "3ed7358c7c6a1ca216dc566e9054fd0b97a1482cb0b7e61092be887d42615c5d", |
| 46 | + urls = ["https://github.com/bazelbuild/buildtools/releases/download/5.0.1/buildifier-linux-amd64"], |
| 47 | +) |
| 48 | + |
| 49 | +http_file( |
| 50 | + name = "buildifier_osx", |
| 51 | + executable = True, |
| 52 | + sha256 = "2cb0a54683633ef6de4e0491072e22e66ac9c6389051432b76200deeeeaf93fb", |
| 53 | + urls = ["https://github.com/bazelbuild/buildtools/releases/download/5.0.1/buildifier-darwin-amd64"], |
| 54 | +) |
| 55 | + |
| 56 | +http_file( |
| 57 | + name = "buildozer", |
| 58 | + executable = True, |
| 59 | + sha256 = "78204dac0ac6a94db499c57c5334b9c0c409d91de9779032c73ad42f2362e901", |
| 60 | + urls = ["https://github.com/bazelbuild/buildtools/releases/download/5.0.1/buildozer-linux-amd64"], |
| 61 | +) |
| 62 | + |
| 63 | +http_file( |
| 64 | + name = "buildozer_osx", |
| 65 | + executable = True, |
| 66 | + sha256 = "17a093596f141ead6ff70ac217a063d7aebc86174faa8ab43620392c17b8ee61", |
| 67 | + urls = ["https://github.com/bazelbuild/buildtools/releases/download/5.0.1/buildozer-darwin-amd64"], |
| 68 | +) |
| 69 | + |
| 70 | +http_file( |
| 71 | + name = "protoc_bin", |
| 72 | + executable = True, |
| 73 | + sha256 = "75d8a9d7a2c42566e46411750d589c51276242d8b6247a5724bac0f9283e05a8", |
| 74 | + urls = ["https://github.com/google/protobuf/releases/download/v3.20.0/protoc-3.20.0-linux-x86_64.zip"], |
| 75 | +) |
| 76 | + |
| 77 | +http_file( |
| 78 | + name = "protoc_bin_osx", |
| 79 | + executable = True, |
| 80 | + sha256 = "8b35a679c99b36caef5899e596281fe0b943ed248f7d5f70b3e705684bf67cb4", |
| 81 | + urls = ["https://github.com/google/protobuf/releases/download/v3.20.0/protoc-3.20.0-osx-x86_64.zip"], |
| 82 | +) |
| 83 | + |
| 84 | +#--------------- |
| 85 | +# Bazel diff |
| 86 | +#--------------- |
| 87 | +http_jar( |
| 88 | + name = "bazel_diff", |
| 89 | + sha256 = "0dc9166097c181796cfcbde4d16ab304e70cc853c536257c3dfa9af60ddd31e6", |
| 90 | + urls = [ |
| 91 | + "https://github.com/Tinder/bazel-diff/releases/download/3.3.0/bazel-diff_deploy.jar", |
| 92 | + ], |
| 93 | +) |
0 commit comments