We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8028e1 commit 2c01d26Copy full SHA for 2c01d26
src/cache.ts
@@ -20,7 +20,9 @@ function checksumFile(hashName: string, path: string): Promise<string> {
20
const pathExists = async (path: string): Promise<boolean> => !!(await fs.promises.stat(path).catch(() => false))
21
22
const getLintCacheDir = (): string => {
23
- return path.resolve(`${process.env.HOME}/.cache/golangci-lint`)
+ const home = process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME
24
+
25
+ return path.resolve(`${home}`, `.cache`, `golangci-lint`)
26
}
27
28
const getIntervalKey = (invalidationIntervalDays: number): string => {
0 commit comments