Skip to content

Commit

Permalink
Fix version resolution in AutoloadSymbols
Browse files Browse the repository at this point in the history
The logic picked the first instead of the highest version due to a typo.

Closes bazelbuild#23936.

PiperOrigin-RevId: 684528776
Change-Id: Ic61c84ca2f3489e43fc71944824e7e2311543ab9
  • Loading branch information
fmeum authored and bazel-io committed Oct 10, 2024
1 parent 85bf48f commit 655523f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public ImmutableMap<String, BzlLoadValue.Key> getLoadKeys(SkyFunction.Environmen
toImmutableMap(
ModuleKey::name,
moduleKey -> moduleKey,
(m1, m2) -> m1.version().compareTo(m2.version()) >= 0 ? m1 : m1));
(m1, m2) -> m1.version().compareTo(m2.version()) >= 0 ? m1 : m2));
RepositoryMapping repositoryMapping =
RepositoryMapping.create(
highestVersions.entrySet().stream()
Expand Down

0 comments on commit 655523f

Please sign in to comment.