Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hacky POC of fixing FHIR package transitive dependency problem #1021

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4239,8 +4239,23 @@ private void loadIg(String name, String packageId, String igver, String uri, int

private void loadIGPackage(String name, String canonical, String packageId, String igver, NpmPackage pi, boolean loadDeps)
throws IOException {
if (pi != null)
if (pi != null) {
npmList.add(pi);
if (loadDeps) {
for (String dep : pi.dependencies()) {
if (!context.hasPackage(dep)) {
String fdep = fixPackageReference(dep);
String coreVersion = VersionUtilities.getVersionForPackage(fdep);
if (coreVersion != null) {
log("Ignore Dependency on Core FHIR " + fdep + ", from package '" + pi.name() + "#" + pi.version() + "'");
} else {
NpmPackage dpi = pcm.loadPackage(fdep);
npmList.add(dpi);
}
}
}
}
}
logDebugMessage(LogCategory.INIT, "Load "+name+" ("+canonical+") from "+packageId+"#"+igver);


Expand Down
Loading