We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e97d335 + cbae3a0 commit f95e43aCopy full SHA for f95e43a
1 file changed
lib/gather/cache.js
@@ -1,9 +1,16 @@
1
const Cache = require('sync-disk-cache');
2
const getRepoInfo = require('git-repo-info');
3
+const crypto = require('crypto');
4
5
const gitInfo = getRepoInfo();
6
-const cachePath = `ember-codemods-telemetry-helpers-${gitInfo.sha}-${process.cwd()}`;
7
+const cwdHash = crypto
8
+ .createHash('sha256')
9
+ .update(process.cwd(), 'utf8')
10
+ .digest('hex');
11
+
12
+const cachePath = `ember-codemods-telemetry-helpers-${gitInfo.sha}-${cwdHash}`;
13
14
const cache = new Cache(cachePath);
15
16
module.exports = cache;
0 commit comments