Skip to content

Commit 57a4811

Browse files
committed
chore: add a note to replace usage of global cache directory
1 parent c23b974 commit 57a4811

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

v-next/hardhat/src/internal/builtin-plugins/console/task-action.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ const consoleAction: NewTaskActionFunction<ConsoleActionArguments> = async (
2424
// Resolve the history path if it is not empty
2525
let historyPath: string | undefined;
2626
if (history !== "") {
27-
const globalCacheDir = await getCacheDir();
27+
// TODO(#5599): Replace with hre.config.paths.cache once it is available
28+
const cacheDir = await getCacheDir();
2829
historyPath = path.isAbsolute(history)
2930
? history
30-
: path.resolve(globalCacheDir, history);
31+
: path.resolve(cacheDir, history);
3132
}
3233

3334
// If noCompile is false, run the compile task first

0 commit comments

Comments
 (0)