Loading
bazel_7: fix enableNixHacks build on darwin
The enableNixHacks patch unconditionally treated any existing repository directory as valid, bypassing marker file validation. When bazel's module extension framework created empty directories for extension-generated repos (like local_config_xcode), the hack returned these before the repository rule could populate them with BUILD files. Fix by checking for BUILD/BUILD.bazel file existence before considering a cached repo valid. Empty repos now fall through to execute the repository rule, which generates proper stubs. Fixes: https://github.com/NixOS/nixpkgs/issues/390395