GP-5825: Fixing regression with loading libraries from container file

This commit is contained in:
Ryan Kurtz 2025-08-27 06:00:56 -04:00
parent fc1c06ea39
commit b5bfcc0fbf

View file

@ -1121,6 +1121,20 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
continue;
}
if (fsService.isLocal(fsrl)) {
try {
// It might be a container file that we want to look inside of, so probe
FileSystemRef fileRef =
fsService.probeFileForFilesystem(fsrl, monitor, null);
if (fileRef != null) {
result.add(new LibrarySearchPath(fileRef, null));
}
}
catch (IOException e) {
log.appendMsg(e.getMessage());
}
}
else {
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
if (fileRef != null) {
result.add(
@ -1131,6 +1145,7 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
log.appendMsg(e.getMessage());
}
}
}
success = true;
}
finally {