Skip to content

Commit 87d4533

Browse files
Auto merge of #617 - simao/dotslash, r=TroyKomodo
Use rules_multitool instead of bazel bindeps Requested-by: TroyKomodo <[email protected]> Reviewed-by: TroyKomodo <[email protected]>
2 parents 55082c3 + 6e2599e commit 87d4533

File tree

866 files changed

+420
-84832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

866 files changed

+420
-84832
lines changed

.github/workflows/ci-check-fmt.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,5 @@ jobs:
3535
- name: Format shfmt
3636
run: bazel run //tools/shfmt -- -w .
3737

38-
- name: Format cedar
39-
run: |
40-
binary=$(bazel cquery //tools/cedar --output=files --build)
41-
exec_root=$(bazel info execution_root)
42-
cedar="${exec_root}/${binary}"
43-
git ls-files "*.cedar" | xargs ls 2>/dev/null | xargs -I {} "${cedar}" format -w -p {}
44-
4538
- name: Exit on diff
4639
run: git diff --exit-code

.github/workflows/ci-check-vendor.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@ jobs:
2626
- name: Vendor Cargo
2727
run: bazel run //vendor:cargo_vendor
2828

29-
- name: Vendor Bindeps
30-
run: bazel run //vendor:bindeps
31-
3229
- name: Exit on change
3330
run: git diff --exit-code

BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ bazel_env(
1717
"cargo": "//tools/cargo",
1818
"cargo-deny": "//tools/cargo/deny",
1919
"cargo-insta": "//tools/cargo/insta",
20-
"cedar": "//tools/cedar",
2120
"buf": "//tools/buf",
2221
"buildifier": "//tools/buildifier",
2322
"dprint": "//tools/dprint",

Justfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ fmt:
1313
buf format -w --disable-symlinks --debug
1414
just --unstable --fmt
1515
shfmt -w .
16-
git ls-files "*.cedar" | xargs ls 2>/dev/null | xargs -I {} cedar format -w -p {}
1716

1817
lint:
1918
bazel run //tools/cargo/clippy:fix
@@ -91,7 +90,7 @@ test *targets="//...":
9190
#!/usr/bin/env bash
9291
set -exuo pipefail
9392

94-
cargo insta reject > /dev/null
93+
cargo-insta reject > /dev/null
9594

9695
targets=$(bazel query 'tests(set({{ targets }}))')
9796

@@ -107,7 +106,7 @@ test *targets="//...":
107106
ln -sf "$(realpath "$snap")" "$(dirname "$rel_path")/$(basename "$rel_path")"
108107
done
109108

110-
cargo insta review
109+
cargo-insta review
111110

112111
rm lcov.info || true
113112
ln -s "$(bazel info output_path)"/_coverage/_coverage_report.dat lcov.info
@@ -120,7 +119,6 @@ alias vendor := lockfile
120119
lockfile:
121120
cargo update --workspace
122121
bazel run //vendor:cargo_vendor
123-
bazel run //vendor:bindeps
124122
pnpm install --lockfile-only
125123

126124
grind *targets="//...":
@@ -144,4 +142,4 @@ doc-serve: doc
144142
miniserve "$(bazel info execution_root)"/"$(bazel cquery --config=wrapper {{ rustdoc_target }} --output=files)" --index index.html --port 3000
145143

146144
deny:
147-
bazel run //tools/cargo/deny check
145+
cargo-deny check

MODULE.bazel

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ bazel_dep(name = "rules_python", version = "1.5.3")
1313
bazel_dep(name = "rules_go", version = "0.57.0")
1414
bazel_dep(name = "rules_java", version = "8.15.2")
1515
bazel_dep(name = "bazel_features", version = "1.32.0")
16+
bazel_dep(name = "rules_multitool", version = "1.9.0")
1617

1718
bazel_dep(name = "bazel_env.bzl", version = "0.5.0", dev_dependency = True)
1819

@@ -28,14 +29,14 @@ include("//misc/toolchains:js.MODULE.bazel")
2829

2930
include("//misc/toolchains:ffmpeg.MODULE.bazel")
3031

31-
include("//misc/toolchains:ibazel.MODULE.bazel")
32-
33-
include("//misc/toolchains:shfmt.MODULE.bazel")
34-
35-
include("//misc/toolchains:bazel-diff.MODULE.bazel")
36-
3732
include("//misc/toolchains:valgrind.MODULE.bazel")
3833

3934
include("//misc/toolchains:assets.MODULE.bazel")
4035

36+
include("//misc/toolchains:bazel-diff.MODULE.bazel")
37+
4138
include("//misc/toolchains:openssl.MODULE.bazel")
39+
40+
multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
41+
multitool.hub(lockfile = "//:multitool.lock.json")
42+
use_repo(multitool, "multitool")

dprint.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,21 @@
66
"indentWidth": 4,
77
"trailingCommas": "never"
88
},
9-
"markdown": {
10-
},
9+
"markdown": {},
1110
"toml": {
1211
"indentWidth": 4
1312
},
14-
"dockerfile": {
15-
},
16-
"malva": {
17-
},
13+
"dockerfile": {},
14+
"malva": {},
1815
"markup": {
1916
"indentWidth": 4,
2017
"svelteAttrShorthand": true,
2118
"svelteDirectiveShorthand": true,
2219
"scriptIndent": true,
2320
"styleIndent": true
2421
},
25-
"yaml": {
26-
},
22+
"cedar": {},
23+
"yaml": {},
2724
"excludes": [
2825
"**/node_modules",
2926
"**/*-lock.json",
@@ -40,6 +37,7 @@
4037
"https://plugins.dprint.dev/g-plane/malva-v0.14.2.wasm",
4138
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.23.2.wasm",
4239
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
43-
"https://plugins.dprint.dev/ruff-0.4.8.wasm"
40+
"https://plugins.dprint.dev/ruff-0.4.8.wasm",
41+
"https://github.com/ScuffleCloud/dprint-plugin-cedar/releases/download/commit-79d0bfa58bb082c19b8955c19159c3f81e677857/dprint_plugin_cedar.wasm"
4442
]
4543
}

misc/toolchains/ibazel.MODULE.bazel

Lines changed: 0 additions & 43 deletions
This file was deleted.

misc/toolchains/js.MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use_repo(npm, "npm")
1717

1818
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
1919
pnpm.pnpm(
20-
pnpm_version = "10.15.0",
21-
pnpm_version_integrity = "sha512-SG68JZ0+mZpOhpHOA7XKxKccvso5Nyqbdiy1AM/fCHPiyxar49lRse4s8BJQPwJ7mLZYTk3yJSTgx0UNnseqew==",
20+
pnpm_version = "10.18.2",
21+
pnpm_version_integrity = "sha512-n7lp+nSbOt5gNeDxCfC4pgtdCKGof99y4zfakNzJMzbiKAyk5E8jWKZJuDwXlZ6Zk+d3wggIefOAHm8NmZrT3Q==",
2222
)
2323
use_repo(pnpm, "pnpm")
2424

misc/toolchains/rust.MODULE.bazel

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -338,17 +338,3 @@ use_repo(
338338
"cargo_vendor__walkdir-2.5.0",
339339
"cargo_vendor__webauthn-rs-0.5.2",
340340
)
341-
342-
bindeps = use_extension("//vendor:cargo_ext.bzl", "bindeps")
343-
use_repo(
344-
bindeps,
345-
"bindeps",
346-
"bindeps__cargo-deny-0.18.4",
347-
"bindeps__cargo-insta-1.43.2",
348-
"bindeps__cedar-policy-cli-4.5.1",
349-
"bindeps__diesel_cli-2.3.2",
350-
"bindeps__dprint-0.50.2",
351-
"bindeps__just-1.42.4",
352-
"bindeps__miniserve-0.31.0",
353-
"bindeps__rust-analyzer-0.0.0",
354-
)

misc/toolchains/shfmt.MODULE.bazel

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)