Skip to content

Commit f21e652

Browse files
committed
fix: Don't use the css-blocks installation location for guid gen.
1 parent 1adbd1b commit f21e652

File tree

1 file changed

+3
-4
lines changed
  • packages/@css-blocks/core/src/BlockParser/utils

1 file changed

+3
-4
lines changed

packages/@css-blocks/core/src/BlockParser/utils/genGuid.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import * as process from "process";
55
const DEBUG = debugGenerator("css-blocks:caching");
66

77
/**
8-
* Generates a unique identifier from a given input identifier. This
9-
* generated identifier hash will remain consistent for the tuple of (machine,
10-
* user, css blocks installation location).
8+
* Generates a unique identifier from a given input identifier.
9+
* This generated identifier hash will remain consistent for the tuple
10+
* (identifier, machine, user).
1111
*
1212
* @param identifier Input Block identifier.
1313
* @param significantChars Number of characters from the start of the hash to use.
@@ -17,7 +17,6 @@ const DEBUG = debugGenerator("css-blocks:caching");
1717
export function gen_guid(identifier: string, signifcantChars: number): string {
1818
let hash = crypto.createHash("md5")
1919
.update(process.getuid().toString())
20-
.update(__filename)
2120
.update(identifier)
2221
.digest("hex")
2322
.slice(0, signifcantChars);

0 commit comments

Comments
 (0)