Skip to content

Commit

Permalink
Don't check main repo name for auto-load when bzlmod is disabled.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 693692713
Change-Id: I65db496e79b30952525dd7995080109fcfc4f9f5
  • Loading branch information
meteorcloudy authored and copybara-github committed Nov 6, 2024
1 parent c8b12e3 commit 764ba19
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ private static StarlarkBuiltinsValue computeInternal(
return null;
}

if (autoloadSymbols.isEnabled()) {
if (autoloadSymbols.isEnabled()
&& starlarkSemantics.getBool(BuildLanguageOptions.ENABLE_BZLMOD)) {
// We can't do autoloads where the rules are implemented (disabling them when running in
// main repository named rules_python)
ModuleFileValue mainModule =
Expand Down

0 comments on commit 764ba19

Please sign in to comment.