forked from loeffel-io/ls-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
153 lines (118 loc) · 5.41 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
############################################################
# http archives ############################################
############################################################
http_archive(
name = "io_bazel_rules_go",
sha256 = "d93ef02f1e72c82d8bb3d5169519b36167b33cf68c252525e3b9d3d5dd143de7",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip",
],
)
http_archive(
name = "bazel_gazelle",
sha256 = "d76bf7a60fd8b050444090dfa2837a4eaf9829e1165618ee35dceca5cbdf58d5",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz",
],
)
http_archive(
name = "rules_pkg",
sha256 = "d20c951960ed77cb7b341c2a59488534e494d5ad1d30c4818c736d57772a9fef",
urls = [
"https://github.com/bazelbuild/rules_pkg/releases/download/1.0.1/rules_pkg-1.0.1.tar.gz",
],
)
http_archive(
name = "aspect_rules_js",
sha256 = "2cfb3875e1231cefd3fada6774f2c0c5a99db0070e0e48ea398acbff7c6c765b",
strip_prefix = "rules_js-1.42.3",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.42.3/rules_js-v1.42.3.tar.gz",
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
############################################################
# custom repositories ######################################
############################################################
load("//:repositories.bzl", "go_repositories")
# gazelle:repository_macro repositories.bzl%go_repositories
go_repositories()
############################################################
# go #######################################################
############################################################
go_rules_dependencies()
go_register_toolchains(version = "1.22.5")
############################################################
# gazelle ##################################################
############################################################
gazelle_dependencies()
############################################################
# rules_pkg ################################################
############################################################
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
############################################################
# rules_js #################################################
############################################################
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock", "pnpm_repository")
npm_translate_lock(
name = "npm",
npmrc = "//deployments/npm:.npmrc",
pnpm_lock = "//deployments/npm:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
pnpm_repository(name = "pnpm")
load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")
register_jq_toolchains()
############################################################
# github cli ###############################################
############################################################
http_archive(
name = "com_github_cli_cli_darwin_arm64",
build_file_content = """exports_files(glob(["bin/*"]))""",
sha256 = "c1c445154ede0707caf24907c74a153e397635ebb35887e73937de1f00dc0c10",
strip_prefix = "gh_2.52.0_macOS_arm64",
urls = [
"https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_macOS_arm64.zip",
],
)
http_archive(
name = "com_github_cli_cli_linux_amd64",
build_file_content = """exports_files(glob(["bin/*"]))""",
sha256 = "3ea6ed8b2585f406a064cecd7e1501e58f56c8e7ca764ae1f3483d1b8ed68826",
strip_prefix = "gh_2.52.0_linux_amd64",
urls = [
"https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz",
],
)
############################################################
# coreutils (sha256) #######################################
############################################################
http_archive(
name = "com_github_uutils_coreutils_darwin_arm64",
build_file_content = """exports_files(["coreutils"])""",
sha256 = "06301e1a027cfac2c22309a89023a47de94208bb673511f8f507059eb0eaf1ae",
strip_prefix = "coreutils-0.0.27-aarch64-apple-darwin",
urls = [
"https://github.com/uutils/coreutils/releases/download/0.0.27/coreutils-0.0.27-aarch64-apple-darwin.tar.gz", # only amd64
],
)
http_archive(
name = "com_github_uutils_coreutils_linux_amd64",
build_file_content = """exports_files(["coreutils"])""",
sha256 = "02ab80c97c7849dc12b30ea21b3c06cf238563e9dbd72343373275871f4cb043",
strip_prefix = "coreutils-0.0.27-x86_64-unknown-linux-gnu",
urls = [
"https://github.com/uutils/coreutils/releases/download/0.0.27/coreutils-0.0.27-x86_64-unknown-linux-gnu.tar.gz",
],
)