fix package loading bug

This commit is contained in:
Grahame Grieve 2022-12-14 09:09:53 +11:00
parent b3a97db37b
commit e9d8400a78
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,6 @@ public class FilesystemPackageCacheManager extends BasePackageCacheManager imple
if (progress)
log(" done.");
}
pck = loadPackageInfo(packRoot);
if (!id.equals(npm.getNpm().asString("name")) || !v.equals(npm.getNpm().asString("version"))) {
if (!id.equals(npm.getNpm().asString("name"))) {
npm.getNpm().add("original-name", npm.getNpm().asString("name"));
@ -445,6 +444,7 @@ public class FilesystemPackageCacheManager extends BasePackageCacheManager imple
npm.getNpm().add("version", v);
}
TextFile.stringToFile(JsonParser.compose(npm.getNpm(), true), Utilities.path(cacheFolder, id + "#" + v, "package", "package.json"), false);
pck = loadPackageInfo(packRoot);
}
} catch (Exception e) {
try {

View File

@ -19,7 +19,7 @@
<properties>
<hapi_fhir_version>6.2.1</hapi_fhir_version>
<validator_test_case_version>1.2.1</validator_test_case_version>
<validator_test_case_version>1.2.2</validator_test_case_version>
<junit_jupiter_version>5.7.1</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>
<maven_surefire_version>3.0.0-M5</maven_surefire_version>