From 66f63c74bb4cdd7d445cb7c8c18dee38449cb1c5 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 3 Jul 2024 01:03:27 +0200 Subject: [PATCH] chore: generate --- dist/post_run/index.js | 3 ++- dist/run/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 48a6923303..bd7629eb1a 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -84932,7 +84932,8 @@ function checksumFile(hashName, path) { } const pathExists = async (path) => !!(await fs.promises.stat(path).catch(() => false)); const getLintCacheDir = () => { - return path_1.default.resolve(`${process.env.HOME}/.cache/golangci-lint`); + const home = process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME; + return path_1.default.resolve(`${home}`, `.cache`, `golangci-lint`); }; const getIntervalKey = (invalidationIntervalDays) => { const now = new Date(); diff --git a/dist/run/index.js b/dist/run/index.js index aaa6c48036..3cd1233ae9 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -84932,7 +84932,8 @@ function checksumFile(hashName, path) { } const pathExists = async (path) => !!(await fs.promises.stat(path).catch(() => false)); const getLintCacheDir = () => { - return path_1.default.resolve(`${process.env.HOME}/.cache/golangci-lint`); + const home = process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME; + return path_1.default.resolve(`${home}`, `.cache`, `golangci-lint`); }; const getIntervalKey = (invalidationIntervalDays) => { const now = new Date();