|
| 1 | +""" Morf workspace dependencies """ |
| 2 | + |
| 3 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
| 4 | +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| 5 | + |
| 6 | +def install_workspace_dependencies(): |
| 7 | + """ Defines repositories for core rules sets |
| 8 | + """ |
| 9 | + |
| 10 | + # Open source license validations |
| 11 | + http_archive( |
| 12 | + name = "rules_license", |
| 13 | + urls = [ |
| 14 | + "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz", |
| 15 | + "https://github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz", |
| 16 | + ], |
| 17 | + sha256 = "00ccc0df21312c127ac4b12880ab0f9a26c1cff99442dc6c5a331750360de3c3", |
| 18 | + ) |
| 19 | + |
| 20 | + # Protobuf-related rules |
| 21 | + http_archive( |
| 22 | + name = "com_google_protobuf", |
| 23 | + sha256 = "9c0fd39c7a08dff543c643f0f4baf081988129a411b977a07c46221793605638", |
| 24 | + strip_prefix = "protobuf-3.20.3", |
| 25 | + urls = [ |
| 26 | + "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.20.3.tar.gz", |
| 27 | + "https://github.com/protocolbuffers/protobuf/archive/v3.20.3.tar.gz", |
| 28 | + ], |
| 29 | + ) |
| 30 | + |
| 31 | + http_archive( |
| 32 | + name = "rules_proto", |
| 33 | + sha256 = "e017528fd1c91c5a33f15493e3a398181a9e821a804eb7ff5acdd1d2d6c2b18d", |
| 34 | + strip_prefix = "rules_proto-4.0.0-3.20.0", |
| 35 | + urls = [ |
| 36 | + "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.20.0.tar.gz", |
| 37 | + ], |
| 38 | + ) |
| 39 | + |
| 40 | + # go-related rules |
| 41 | + http_archive( |
| 42 | + name = "io_bazel_rules_go", |
| 43 | + sha256 = "16e9fca53ed6bd4ff4ad76facc9b7b651a89db1689a2877d6fd7b82aa824e366", |
| 44 | + urls = [ |
| 45 | + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip", |
| 46 | + "https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip", |
| 47 | + ], |
| 48 | + ) |
| 49 | + |
| 50 | + http_archive( |
| 51 | + name = "bazel_skylib", |
| 52 | + urls = [ |
| 53 | + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| 54 | + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| 55 | + ], |
| 56 | + sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", |
| 57 | + ) |
| 58 | + |
| 59 | + # gazelle |
| 60 | + http_archive( |
| 61 | + name = "bazel_gazelle", |
| 62 | + sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d", |
| 63 | + urls = [ |
| 64 | + "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz", |
| 65 | + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz", |
| 66 | + ], |
| 67 | + ) |
| 68 | + |
| 69 | + # buildifier |
| 70 | + http_archive( |
| 71 | + name = "com_github_bazelbuild_buildtools", |
| 72 | + sha256 = "ae34c344514e08c23e90da0e2d6cb700fcd28e80c02e23e4d5715dddcb42f7b3", |
| 73 | + strip_prefix = "buildtools-4.2.2", |
| 74 | + urls = [ |
| 75 | + "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.2.tar.gz", |
| 76 | + ], |
| 77 | + ) |
0 commit comments