-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
29 lines (19 loc) · 853 Bytes
/
justfile
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
deps-update:
rg -l 'maven_install_json' --glob '*.bzl' --glob 'WORKSPACE' | xargs sed -i -E 's/[^#]maven_install_json/#maven_install_json/g'
cd tests && bazel run @annex_test//:pin
rg -l '#maven_install_json' --glob '*.bzl' --glob 'WORKSPACE' | xargs sed -i 's/#maven_install_json/maven_install_json/g'
cd tests && REPIN=1 bazel run @unpinned_annex_test//:pin
deps-outdated:
cd tests && bazel run @annex_test//:outdated
bzl-lint:
fd -E bazel/deps -E 3rdparty -E cargo "^(.*BUILD|WORKSPACE|.*\\.bzl)" . -x buildifier --lint=warn --warnings=all \;
bzl-fmt:
fd -E bazel/deps -E 3rdparty -E cargo "^(.*BUILD|WORKSPACE|.*\\.bzl)" . -x buildifier
nix-fmt:
find . -name "*.nix" | xargs nixpkgs-fmt
scala-fmt:
scalafmt -c .scalafmt.conf --non-interactive
fmt: scala-fmt nix-fmt bzl-fmt
clean:
bazel clean --expunge
bazel sync --configure