Skip to content

Commit

Permalink
Merge pull request #41903 from ShammiL/sql-time-resolution-8
Browse files Browse the repository at this point in the history
[2201.8.x] Fix time module resolution error in SQL compiler plugin tests
  • Loading branch information
azinneera authored Dec 19, 2023
2 parents 9613b1c + 58cfc84 commit 218ea39
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,16 @@ private NodeStatus addNewVertex(Vertex vertex, DependencyNode newPkgDep, boolean
if (resolutionOptions.dumpRawGraphs()) {
rawGraphBuilder.add(resolvedPkgDep);
}
// Update the scope of dependencies
for (Vertex depVertex : depGraph.get(vertex)) {
DependencyNode dependencyNode = vertices.get(depVertex);
DependencyNode newDependencyNode = new DependencyNode(dependencyNode.pkgDesc(), resolvedPkgDep.scope(),
dependencyNode.resolutionType());
vertices.put(depVertex, newDependencyNode);
if (resolutionOptions.dumpRawGraphs()) {
rawGraphBuilder.addDependency(resolvedPkgDep, newDependencyNode);
// Update the scope of dependencies only if rejected node scope is DEFAULT
if (resolvedPkgDep.scope() == PackageDependencyScope.DEFAULT) {
for (Vertex depVertex : depGraph.get(vertex)) {
DependencyNode dependencyNode = vertices.get(depVertex);
DependencyNode newDependencyNode = new DependencyNode(dependencyNode.pkgDesc(),
resolvedPkgDep.scope(), dependencyNode.resolutionType());
vertices.put(depVertex, newDependencyNode);
if (resolutionOptions.dumpRawGraphs()) {
rawGraphBuilder.addDependency(resolvedPkgDep, newDependencyNode);
}
}
}
}
Expand Down

0 comments on commit 218ea39

Please sign in to comment.