Skip to content

Commit

Permalink
Read dataDir from the config/env var
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Jul 27, 2023
1 parent 36b81ab commit eff2a50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/graph/helpers/ui5Framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eff2a50

Please sign in to comment.