We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59d93ae commit cbae3a0Copy full SHA for cbae3a0
1 file changed
lib/gather/cache.js
@@ -1,11 +1,15 @@
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 cwd = process.cwd().replace(':', '꞉');
7
+const cwdHash = crypto
8
+ .createHash('sha256')
9
+ .update(process.cwd(), 'utf8')
10
+ .digest('hex');
11
-const cachePath = `ember-codemods-telemetry-helpers-${gitInfo.sha}-${cwd}`;
12
+const cachePath = `ember-codemods-telemetry-helpers-${gitInfo.sha}-${cwdHash}`;
13
14
const cache = new Cache(cachePath);
15
0 commit comments