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
# Allow the internal mirror and block everything else
294
+
allow internal.mirror.lan
295
+
block *
296
+
```
297
+
298
+
Use the config file with `--experimental_downloader_config=bazel_downloader.cfg`.
299
+
300
+
### How the config is parsed:
301
+
302
+
* Uses Java regular expressions
303
+
* Matching is performed only on host and path components of the URL, not the scheme
304
+
* Directives are applied in the following order: `rewrite, allow, block`
305
+
* Back references are numbered starting from `$1`
306
+
* Expressions must match the entire string being tested, not just find a substring.
307
+
308
+
If your patterns don't seem to match or rewrite:
309
+
310
+
* Begin with simple patterns to ensure they match as expected.
311
+
* Be cautious when using `block` statements to avoid unintentionally blocking necessary downloads. Add `block` statements incrementally and test thoroughly after each change.
0 commit comments