chore: build

This commit is contained in:
Zxilly 2024-07-02 21:53:20 +08:00
parent c95b6ec852
commit a19ea71820
No known key found for this signature in database
GPG key ID: 47AB1DEC841BC6A2
2 changed files with 4 additions and 2 deletions

3
dist/post_run/index.js generated vendored
View file

@ -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" ? "USERPROFILE" : "HOME";
return path_1.default.resolve(`${home}/.cache/golangci-lint`);
};
const getIntervalKey = (invalidationIntervalDays) => {
const now = new Date();

3
dist/run/index.js generated vendored
View file

@ -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" ? "USERPROFILE" : "HOME";
return path_1.default.resolve(`${home}/.cache/golangci-lint`);
};
const getIntervalKey = (invalidationIntervalDays) => {
const now = new Date();