You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gazelle finds this under the external/com_google_absl directory. I rewrite all Imports under the external directory similar to this logic
//external/bar/foo:test -> @bar//foo:test
The problem is, that gazelle reformats all the build files in that directory, and this breaks bazel (because the external files are supposed to be "readonly"). We cant use gazelle:ignore directive, because we dont "control" the build files that are not properly formatted.
So my idea was to introduce a directive that allows to ignore a subtree of directories: In the root BUILD file, you could add this to not format files under external or other directories.
example usage
# BUILD
# gazelle:ignore_recursive external
Will not update anything under external but still process them.
I am happy to try to contribute a feature like this.
The text was updated successfully, but these errors were encountered:
What version of gazelle are you using?
built from head
What version of rules_go are you using?
n/a
What version of Bazel are you using?
Does this issue reproduce with the latest releases of all the above?
yes
What operating system and processor architecture are you using?
macOS 13.3.1 (22E261), arm
What did you do?
I am experimenting with a C++ gazelle extension. I am working on resolving to external repositories:
Gazelle finds this under the
external/com_google_absl
directory. I rewrite allImports
under the external directory similar to this logic//external/bar/foo:test
->@bar//foo:test
The problem is, that gazelle reformats all the build files in that directory, and this breaks bazel (because the external files are supposed to be "readonly"). We cant use
gazelle:ignore
directive, because we dont "control" the build files that are not properly formatted.So my idea was to introduce a directive that allows to ignore a subtree of directories: In the root BUILD file, you could add this to not format files under external or other directories.
example usage
Will not update anything under
external
but still process them.I am happy to try to contribute a feature like this.
The text was updated successfully, but these errors were encountered: