From eff2a505d50bc83c9a0f9bf050a955bb1ed80ff8 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Thu, 27 Jul 2023 16:51:16 +0300 Subject: [PATCH] Read dataDir from the config/env var --- lib/graph/helpers/ui5Framework.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/graph/helpers/ui5Framework.js b/lib/graph/helpers/ui5Framework.js index 4dec54470..2f22e89a2 100644 --- a/lib/graph/helpers/ui5Framework.js +++ b/lib/graph/helpers/ui5Framework.js @@ -2,6 +2,7 @@ import Module from "../Module.js"; import ProjectGraph from "../ProjectGraph.js"; import {getLogger} from "@ui5/logger"; const log = getLogger("graph:helpers:ui5Framework"); +import Configuration from "../../config/Configuration.js"; class ProjectProcessor { constructor({libraryMetadata, graph, workspace}) { @@ -363,13 +364,16 @@ export default { }); } + const config = await Configuration.fromFile(); + // Note: version might be undefined here and the Resolver will throw an error when calling // #install and it can't be resolved via the provided library metadata const resolver = new Resolver({ cwd: rootProject.getRootPath(), version, providedLibraryMetadata, - cacheMode + cacheMode, + ui5HomeDir: config.getUi5DataDir() }); let startTime;