We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e755262 commit 59c7203Copy full SHA for 59c7203
1 file changed
packages/env/lib/config/load-config.js
@@ -68,13 +68,16 @@ module.exports = async function loadConfig(
68
}
69
70
71
- // Try legacy md5 cache first, fall back to descriptive name
72
const cacheDirectory = await getCacheDirectory();
+
73
+ // If a cache already exists at the "legacy" path (which consists of a
74
+ // simple but opaque md5 hash), honor it.
75
let cacheDirectoryPath = path.resolve(
76
cacheDirectory,
77
md5( configFilePath )
78
);
79
80
+ // Otherwise, prefer a more descriptive path.
81
if ( ! existsSync( cacheDirectoryPath ) ) {
82
cacheDirectoryPath = path.resolve(
83
0 commit comments