Skip to content

Commit c44418f

Browse files
committed
chore: upgrade gazelle to 0.46.rc2, aspect-gazelle to 4a3c2d2f2d03
1 parent 9b1542a commit c44418f

File tree

6 files changed

+57
-55
lines changed

6 files changed

+57
-55
lines changed

bazel/include/go.MODULE.bazel

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,59 +13,60 @@ use_repo(go_sdk, "go_sdk")
1313
bazel_dep(name = "gazelle", version = "0.45.0", repo_name = "bazel_gazelle")
1414
archive_override(
1515
module_name = "gazelle",
16-
integrity = "sha256-3NCjXwfTFu/htS5BEzcn/uKXSdjKEZhrYdC+zykbcUE=",
16+
integrity = "sha256-7OFD5iTGfqKOaFkiuMIwl2ph2gXVUSpaCxWHnY/lwOw=",
1717
patch_strip = 1,
1818
patches = [
19-
"//patches:bazelbuild_bazel-gazelle_aspect-cli.patch",
19+
"//patches:gazelle-branded.patch",
2020
"//patches:gazelle-gitignore.patch",
21+
"//patches:gazelle-watchman.patch",
2122
],
22-
strip_prefix = "bazel-gazelle-0e862c3d81827441407c1e7c421831af511acfdb",
23-
urls = ["https://github.com/bazel-contrib/bazel-gazelle/archive/0e862c3d81827441407c1e7c421831af511acfdb.tar.gz"],
23+
strip_prefix = "bazel-gazelle-47b5773efc64569526e4cafe53cf74d8993dfda9",
24+
urls = ["https://github.com/bazel-contrib/bazel-gazelle/archive/47b5773efc64569526e4cafe53cf74d8993dfda9.tar.gz"],
2425
)
2526

2627
bazel_dep(name = "aspect_gazelle", version = "0.0.0")
2728
archive_override(
2829
module_name = "aspect_gazelle",
29-
integrity = "sha256-aG0e/HzI65635JXQ3RQuEqV9cmdNl4bBXAD0VyfL/DU=",
30-
strip_prefix = "aspect-gazelle-1859933dc67ead69d44b824830ab38d782113f56",
31-
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/1859933dc67ead69d44b824830ab38d782113f56.tar.gz"],
30+
integrity = "sha256-4t2jOJ0VnxdGMlbUe98HJnaSr3Zk7iQq/c/pJiTCsi8=",
31+
strip_prefix = "aspect-gazelle-4a3c2d2f2d0333258c4adc9aa1d45e920a60697c",
32+
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/4a3c2d2f2d0333258c4adc9aa1d45e920a60697c.tar.gz"],
3233
)
3334

3435
bazel_dep(name = "aspect_gazelle_js", version = "0.0.0")
3536
archive_override(
3637
module_name = "aspect_gazelle_js",
37-
integrity = "sha256-aG0e/HzI65635JXQ3RQuEqV9cmdNl4bBXAD0VyfL/DU=",
38-
strip_prefix = "aspect-gazelle-1859933dc67ead69d44b824830ab38d782113f56/language/js",
39-
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/1859933dc67ead69d44b824830ab38d782113f56.tar.gz"],
38+
integrity = "sha256-4t2jOJ0VnxdGMlbUe98HJnaSr3Zk7iQq/c/pJiTCsi8=",
39+
strip_prefix = "aspect-gazelle-4a3c2d2f2d0333258c4adc9aa1d45e920a60697c/language/js",
40+
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/4a3c2d2f2d0333258c4adc9aa1d45e920a60697c.tar.gz"],
4041
)
4142

4243
bazel_dep(name = "aspect_gazelle_orion", version = "0.0.0")
4344
archive_override(
4445
module_name = "aspect_gazelle_orion",
45-
integrity = "sha256-aG0e/HzI65635JXQ3RQuEqV9cmdNl4bBXAD0VyfL/DU=",
46-
strip_prefix = "aspect-gazelle-1859933dc67ead69d44b824830ab38d782113f56/language/orion",
47-
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/1859933dc67ead69d44b824830ab38d782113f56.tar.gz"],
46+
integrity = "sha256-4t2jOJ0VnxdGMlbUe98HJnaSr3Zk7iQq/c/pJiTCsi8=",
47+
strip_prefix = "aspect-gazelle-4a3c2d2f2d0333258c4adc9aa1d45e920a60697c/language/orion",
48+
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/4a3c2d2f2d0333258c4adc9aa1d45e920a60697c.tar.gz"],
4849
)
4950

5051
bazel_dep(name = "aspect_gazelle_runner", version = "0.0.0")
5152
archive_override(
5253
module_name = "aspect_gazelle_runner",
53-
integrity = "sha256-aG0e/HzI65635JXQ3RQuEqV9cmdNl4bBXAD0VyfL/DU=",
54+
integrity = "sha256-4t2jOJ0VnxdGMlbUe98HJnaSr3Zk7iQq/c/pJiTCsi8=",
5455
patch_strip = 2,
5556
patches = [
5657
"//patches:aspect-gazelle-runner.patch",
5758
],
58-
strip_prefix = "aspect-gazelle-1859933dc67ead69d44b824830ab38d782113f56/runner",
59-
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/1859933dc67ead69d44b824830ab38d782113f56.tar.gz"],
59+
strip_prefix = "aspect-gazelle-4a3c2d2f2d0333258c4adc9aa1d45e920a60697c/runner",
60+
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/4a3c2d2f2d0333258c4adc9aa1d45e920a60697c.tar.gz"],
6061
)
6162

6263
# Not direclty used but must be declared+overriden until aspect_gazelle_runner points to one published to BCR.
6364
bazel_dep(name = "aspect_gazelle_kotlin", version = "0.0.0")
6465
archive_override(
6566
module_name = "aspect_gazelle_kotlin",
66-
integrity = "sha256-aG0e/HzI65635JXQ3RQuEqV9cmdNl4bBXAD0VyfL/DU=",
67-
strip_prefix = "aspect-gazelle-1859933dc67ead69d44b824830ab38d782113f56/language/kotlin",
68-
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/1859933dc67ead69d44b824830ab38d782113f56.tar.gz"],
67+
integrity = "sha256-4t2jOJ0VnxdGMlbUe98HJnaSr3Zk7iQq/c/pJiTCsi8=",
68+
strip_prefix = "aspect-gazelle-4a3c2d2f2d0333258c4adc9aa1d45e920a60697c/language/kotlin",
69+
urls = ["https://github.com/aspect-build/aspect-gazelle/archive/4a3c2d2f2d0333258c4adc9aa1d45e920a60697c.tar.gz"],
6970
)
7071

7172
# Go modules

go.mod

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ go 1.24.5
55
require (
66
github.com/Masterminds/semver/v3 v3.4.0 // indirect
77
github.com/alphadose/haxmap v1.4.1
8-
github.com/aspect-build/aspect-gazelle/common v0.0.0-20251023224130-1859933dc67e
9-
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251023224130-1859933dc67e
10-
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251023224130-1859933dc67e
11-
github.com/bazelbuild/bazel-gazelle v0.45.1-0.20250924144014-2de7b829fef1
8+
github.com/aspect-build/aspect-gazelle/common v0.0.0-20251029222723-4a3c2d2f2d03
9+
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251029222723-4a3c2d2f2d03
10+
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251029222723-4a3c2d2f2d03
11+
github.com/bazelbuild/bazel-gazelle v0.46.0-rc2
1212
github.com/bazelbuild/bazelisk v1.26.0 // NOTE: keep vendored code in sync
1313
github.com/bazelbuild/buildtools v0.0.0-20250930140053-2eb4fccefb52
1414
github.com/bluekeyes/go-gitdiff v0.7.3
@@ -20,23 +20,18 @@ require (
2020
github.com/golang/protobuf v1.5.4
2121
github.com/hashicorp/go-hclog v1.6.3
2222
github.com/hashicorp/go-plugin v1.6.1
23-
github.com/itchyny/gojq v0.12.18-0.20251005142832-e46d0344f209 // indirect
2423
github.com/manifoldco/promptui v0.9.0
2524
github.com/mattn/go-isatty v0.0.20
2625
github.com/mitchellh/go-homedir v1.1.0
27-
github.com/msolo/jsonr v0.0.0-20231023064044-62fbfc3a0313 // indirect
2826
github.com/onsi/gomega v1.38.2
2927
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
30-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
3128
github.com/reviewdog/errorformat v0.0.0-20240608101709-1d3280ed6bd4
3229
github.com/rs/zerolog v1.34.0
33-
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 // indirect
3430
github.com/spf13/cobra v1.10.1
3531
github.com/spf13/pflag v1.0.10
3632
github.com/spf13/viper v1.20.1
3733
github.com/tejzpr/ordered-concurrently/v3 v3.0.1
3834
github.com/twmb/murmur3 v1.1.8
39-
go.starlark.net v0.0.0-20250906160240-bf296ed553ea // indirect
4035
golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 // indirect
4136
golang.org/x/mod v0.29.0
4237
golang.org/x/sync v0.17.0
@@ -64,13 +59,6 @@ require (
6459
gotest.tools/v3 v3.5.1
6560
)
6661

67-
require (
68-
github.com/aspect-build/aspect-gazelle/language/kotlin v0.0.0-20251023224130-1859933dc67e // indirect
69-
github.com/bazel-contrib/rules_jvm v0.30.0 // indirect
70-
github.com/google/btree v1.1.3 // indirect
71-
github.com/sagikazarmark/locafero v0.7.0 // indirect
72-
)
73-
7462
require (
7563
dario.cat/mergo v1.0.2 // indirect
7664
github.com/EngFlow/gazelle_cc v0.1.0 // indirect
@@ -79,7 +67,6 @@ require (
7967
github.com/a8m/envsubst v1.4.3 // indirect
8068
github.com/alecthomas/chroma/v2 v2.15.0 // indirect
8169
github.com/alecthomas/participle/v2 v2.1.4 // indirect
82-
github.com/aspect-build/aspect-gazelle/language/js v0.0.0-20251023224130-1859933dc67e // indirect
8370
github.com/atotto/clipboard v0.1.4 // indirect
8471
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
8572
github.com/aymerick/douceur v0.2.0 // indirect
@@ -128,6 +115,7 @@ require (
128115
github.com/haya14busa/go-sarif v0.0.0-20210102043135-e2c5fed2fa3d // indirect
129116
github.com/huandu/xstrings v1.5.0 // indirect
130117
github.com/inconshreveable/mousetrap v1.1.0 // indirect
118+
github.com/itchyny/gojq v0.12.18-0.20251005142832-e46d0344f209 // indirect
131119
github.com/itchyny/timefmt-go v0.1.7 // indirect
132120
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
133121
github.com/jinzhu/copier v0.4.0 // indirect
@@ -150,12 +138,15 @@ require (
150138
github.com/oklog/run v1.1.0 // indirect
151139
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
152140
github.com/pjbgf/sha1cd v0.4.0 // indirect
141+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
153142
github.com/psanford/memfs v0.0.0-20241019191636-4ef911798f9b // indirect
154143
github.com/rivo/uniseg v0.4.7 // indirect
155144
github.com/russross/blackfriday/v2 v2.1.0 // indirect; indirect github.com/sagikazarmark/locafero v0.9.0 // indirect
145+
github.com/sagikazarmark/locafero v0.7.0 // indirect
156146
github.com/sahilm/fuzzy v0.1.1 // indirect
157147
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
158148
github.com/skeema/knownhosts v1.3.1 // indirect
149+
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 // indirect
159150
github.com/sourcegraph/conc v0.3.0 // indirect
160151
github.com/spf13/afero v1.12.0 // indirect
161152
github.com/spf13/cast v1.7.1 // indirect
@@ -169,6 +160,7 @@ require (
169160
github.com/yuin/gopher-lua v1.1.1 // indirect
170161
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
171162
go.opentelemetry.io/otel/metric v1.38.0 // indirect
163+
go.starlark.net v0.0.0-20250906160240-bf296ed553ea // indirect
172164
go.uber.org/atomic v1.9.0 // indirect
173165
go.uber.org/multierr v1.9.0 // indirect
174166
go.yaml.in/yaml/v3 v3.0.4 // indirect

go.sum

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,12 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI
2727
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
2828
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
2929
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
30-
github.com/aspect-build/aspect-gazelle/common v0.0.0-20251023224130-1859933dc67e h1:1zA9KwD6DNsmiOKxK8npF8rrX4xvKiIC29XJa+kl5dQ=
31-
github.com/aspect-build/aspect-gazelle/common v0.0.0-20251023224130-1859933dc67e/go.mod h1:FtyqQH3X6R33MNd3uuhTTNHEjmZnUuDs9kIU13y/HkA=
32-
github.com/aspect-build/aspect-gazelle/language/js v0.0.0-20251023224130-1859933dc67e h1:5a2blHzKw39zG00in9rBr+lZMfj7jzVc0YYpqdbAKEw=
33-
github.com/aspect-build/aspect-gazelle/language/js v0.0.0-20251023224130-1859933dc67e/go.mod h1:DizauW23YdN/LjVGk9yw08pTiqZUX9B7EVhS/Dq5P08=
34-
github.com/aspect-build/aspect-gazelle/language/kotlin v0.0.0-20251023224130-1859933dc67e h1:04Q8BzN3V4jn+kU4rHmHFy4xhuspGqhkqbY9LuJ+nXo=
35-
github.com/aspect-build/aspect-gazelle/language/kotlin v0.0.0-20251023224130-1859933dc67e/go.mod h1:bZKc3URSRU5DOrM8YcAvky165ZHFf9i9Kr55uJA5+H8=
36-
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251023224130-1859933dc67e h1:us4QYAdDdiio2PypTRNSA3SXKHm9LxA33sGneN5OfDs=
37-
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251023224130-1859933dc67e/go.mod h1:GIff4fwG3AqM13oIKG7vlUzNH7jHOvW2V2WN+mK44SE=
38-
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251023224130-1859933dc67e h1:0vd3rBzc3QqnX1YokmZNFPl1JHPNxaBssbAhHTxg2u0=
39-
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251023224130-1859933dc67e/go.mod h1:JvktCLm56Wx/IyRlIePNsgHhRP9v5Ar4FrMw0cefytY=
30+
github.com/aspect-build/aspect-gazelle/common v0.0.0-20251029222723-4a3c2d2f2d03 h1:6W6sDdQJF7zyy9SNjDALdwHKJ89GjZLdvYOddhUMixw=
31+
github.com/aspect-build/aspect-gazelle/common v0.0.0-20251029222723-4a3c2d2f2d03/go.mod h1:G6awMFN6QlDY5yV9tUjTqGSlAKzd1SC/bBtPiiG/y48=
32+
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251029222723-4a3c2d2f2d03 h1:RD9fc6lnejarPTgT9IagEQXEFkjYQWz5s5IbDlCJMvI=
33+
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251029222723-4a3c2d2f2d03/go.mod h1:Jrp2AN2kf4sVyChii70kClZwzMWy9/n28wAENBlrT9M=
34+
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251029222723-4a3c2d2f2d03 h1:xFe/4SoFlBMXDQJsjzfh57+FaAoqWqv2scmgHCYR1b4=
35+
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251029222723-4a3c2d2f2d03/go.mod h1:1tAv6P6NfvRO+no+cqgXaOAXGAqi/JLASdRMmqV4a8Y=
4036
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
4137
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
4238
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
@@ -45,12 +41,10 @@ github.com/aymanbagabas/go-udiff v0.2.0 h1:TK0fH4MteXUDspT88n8CKzvK0X9O2xu9yQjWp
4541
github.com/aymanbagabas/go-udiff v0.2.0/go.mod h1:RE4Ex0qsGkTAJoQdQQCA0uG+nAzJO/pI/QwceO5fgrA=
4642
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
4743
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
48-
github.com/bazel-contrib/rules_jvm v0.30.0 h1:GSKDLgH7hi5dpOwmdhE3SJEQzVtsv31i2IvSUWIkP5Q=
49-
github.com/bazel-contrib/rules_jvm v0.30.0/go.mod h1:HxRDtmRlh/ErR+2QlVwYs4BcIrB248HeheKi5uyKeN4=
5044
github.com/bazel-contrib/rules_python/gazelle v0.0.0-20251012075144-43a5acf8cedf h1:HGT/ELJizYCYtTtyL4m9HAD0wYzuLBzDP3YYfk5N8Ow=
5145
github.com/bazel-contrib/rules_python/gazelle v0.0.0-20251012075144-43a5acf8cedf/go.mod h1:84dcq5fZ/hiQGnpjzH57+Xm7T6uwpPty1KPB7qzHDO0=
52-
github.com/bazelbuild/bazel-gazelle v0.45.1-0.20250924144014-2de7b829fef1 h1:tsMoNz7rX4r65wf8eMyehnIyJPWf2BzS+VaDAfcZmdc=
53-
github.com/bazelbuild/bazel-gazelle v0.45.1-0.20250924144014-2de7b829fef1/go.mod h1:XdBdWhrTc5x50CKzKXOcwrZWdLuX58IX1KcSaWPtEGo=
46+
github.com/bazelbuild/bazel-gazelle v0.46.0-rc2 h1:opKbd+Bj7ZKtlYJF1JqE9W4OVDvFEZogj2ncVtrLpOU=
47+
github.com/bazelbuild/bazel-gazelle v0.46.0-rc2/go.mod h1:8Ozf20jhv+in87nCUHdmUPPcVGTfKg/gotZ/hce3T+w=
5448
github.com/bazelbuild/bazelisk v1.26.0 h1:LvPtflqF7p+gjfdp491hqVWtu4+S/7yW9Yz2Xj4KzQk=
5549
github.com/bazelbuild/bazelisk v1.26.0/go.mod h1:te9bGfPtIk03+J52OwFXVJ2Laf9O0v7xphPTWWt9Flk=
5650
github.com/bazelbuild/buildtools v0.0.0-20250930140053-2eb4fccefb52 h1:njQAmjTv/YHRm/0Lfv9DXHFZ4MdT2IA/RKHTnqZkgDw=
@@ -178,8 +172,6 @@ github.com/golang/mock v1.7.0-rc.1 h1:YojYx61/OLFsiv6Rw1Z96LpldJIy31o+UHmwAUMJ6/
178172
github.com/golang/mock v1.7.0-rc.1/go.mod h1:s42URUywIqd+OcERslBJvOjepvNymP31m3q8d/GkuRs=
179173
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
180174
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
181-
github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=
182-
github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
183175
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
184176
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
185177
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
@@ -270,8 +262,6 @@ github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4
270262
github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE=
271263
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
272264
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
273-
github.com/msolo/jsonr v0.0.0-20231023064044-62fbfc3a0313 h1:A8w3/wSixa6RqN8bLYQ9mayk+d8xxq6jQCmlKs/jCRo=
274-
github.com/msolo/jsonr v0.0.0-20231023064044-62fbfc3a0313/go.mod h1:6qRblG2m4u2fk3x59GT4awRlwvZbnZ3P1RmFZrDjVwk=
275265
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=
276266
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
277267
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=

patches/BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
33
exports_files(glob(["**/*.patch"]))
44

55
write_source_files(
6-
name = "orion_patches",
6+
name = "gazelle_patches",
77
files = {
8+
"gazelle-branded.patch": "@aspect_gazelle_runner//patches:bazelbuild_bazel-gazelle_aspect-cli.patch",
89
"gazelle-gitignore.patch": "@aspect_gazelle_runner//pkg/git:gazelle-gitignore.patch",
10+
"gazelle-watchman.patch": "@aspect_gazelle_runner//patches:bazelbuild_bazel-gazelle_aspect-watchman.patch",
911
},
1012
)
File renamed without changes.

patches/gazelle-watchman.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/walk/walk.go b/walk/walk.go
2+
index 0e59bcf..b8d774c 100644
3+
--- a/walk/walk.go
4+
+++ b/walk/walk.go
5+
@@ -373,6 +373,12 @@ func newWalker(c *config.Config, cexts []config.Configurer, dirs []string, mode
6+
relsToVisitSeen: make(map[string]struct{}),
7+
}
8+
9+
+ // PATCH(caching): additional aspect-gazelle caching of walker
10+
+ if c.Exts["aspect:walkCache:load"] != nil {
11+
+ walkCacheLoad := c.Exts["aspect:walkCache:load"].(func(m interface{}))
12+
+ walkCacheLoad(&w.cache.entryMap)
13+
+ }
14+
+
15+
// Asynchronously populate the walker cache in the background.
16+
go w.populateCache()
17+

0 commit comments

Comments
 (0)