Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Apr 24, 2024
1 parent 6f1aaf7 commit 9767acc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ private static Selection.Result discoverAndSelect(
var yankedVersionsKeys =
resolvedDepGraph.values().stream()
.filter(m -> m.getRegistry() != null)
// Since RepoSpecs are fetched only after yanked version checking, any module version
// that already has its source.json recorded in the lock file passed yanked version
// validation in a previous build. Since yanked version information is inherently
// mutable, it might have changed since then, but we choose to recheck only those module
// versions that have not been selected before.
.filter(m -> m.getRegistry().hasRepoSpec())
.map(m -> YankedVersionsValue.Key.create(m.getName(), m.getRegistry().getUrl()))
.collect(toImmutableSet());
SkyframeLookupResult yankedVersionsResult = env.getValuesAndExceptions(yankedVersionsKeys);
Expand Down

0 comments on commit 9767acc

Please sign in to comment.