Treat ZIPs in datapacks/imports and file: URLs as datapack sources

Pack authors can drop a datapack ZIP into Iris/datapacks/imports or list a
file: URL in datapackImports; dropped ZIPs apply to every dimension. Local
sources are copied without following symlinks and their bytes feed the
startup validation fingerprint so the cache invalidates when a ZIP changes.

Upstream: 333b766d2
This commit is contained in:
piexel committed 2026-11-10 01:30:00 +01:00
1 parent 742080c6f2
commit b731ab7c02
8 files changed
+387 -46

No files matched your search

@@ -333,7 +333,7 @@ public class CommandFind implements DirectorExecutor {
}
Set<String> configuredImportUrls = normalizedImportUrls(
engine.getDimension().getDatapackImports());
DatapackIngestService.configuredImports(engine.getDimension()));
return new StructureExclusionReport(
List.copyOf(exclusions), Set.copyOf(registeredKeys.keySet()),
configuredImportUrls, registeredExcluded, configuredUnregistered,
@@ -112,6 +112,6 @@ public final class DatapackStructureScopeSVC implements IrisService {
return Set.of();
}
return scopeIndex.declaredSources(
generator.getTarget().getDimension().getDatapackImports());
DatapackIngestService.configuredImports(generator.getTarget().getDimension()));
}
}