修改下载地址为gitea.fzu.edu.cn。

Signed-off-by: siaimes <34199488+siaimes@users.noreply.github.com>
This commit is contained in:
siaimes 2024-10-11 16:27:53 +08:00
parent 971e284b60
commit 35acfd6215
4 changed files with 6 additions and 6 deletions

4
dist/post_run/index.js generated vendored
View File

@ -85252,7 +85252,7 @@ const os_1 = __importDefault(__nccwpck_require__(857));
const path_1 = __importDefault(__nccwpck_require__(6928));
const util_1 = __nccwpck_require__(9023);
const execShellCommand = (0, util_1.promisify)(child_process_1.exec);
const downloadURL = "https://github.com/golangci/golangci-lint/releases/download";
const downloadURL = "https://gitea.fzu.edu.cn/eeafj/golangci-lint/releases/download";
const getAssetURL = (versionConfig) => {
let ext = "tar.gz";
let platform = os_1.default.platform().toString();
@ -85941,7 +85941,7 @@ async function findLintVersion(mode) {
const versionWithoutV = `${reqLintVersion.major}.${reqLintVersion.minor}.${reqLintVersion.patch}`;
resolve({
TargetVersion: `v${versionWithoutV}`,
AssetURL: `https://github.com/golangci/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
AssetURL: `https://gitea.fzu.edu.cn/eeafj/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
});
});
}

4
dist/run/index.js generated vendored
View File

@ -85252,7 +85252,7 @@ const os_1 = __importDefault(__nccwpck_require__(857));
const path_1 = __importDefault(__nccwpck_require__(6928));
const util_1 = __nccwpck_require__(9023);
const execShellCommand = (0, util_1.promisify)(child_process_1.exec);
const downloadURL = "https://github.com/golangci/golangci-lint/releases/download";
const downloadURL = "https://gitea.fzu.edu.cn/eeafj/golangci-lint/releases/download";
const getAssetURL = (versionConfig) => {
let ext = "tar.gz";
let platform = os_1.default.platform().toString();
@ -85941,7 +85941,7 @@ async function findLintVersion(mode) {
const versionWithoutV = `${reqLintVersion.major}.${reqLintVersion.minor}.${reqLintVersion.patch}`;
resolve({
TargetVersion: `v${versionWithoutV}`,
AssetURL: `https://github.com/golangci/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
AssetURL: `https://gitea.fzu.edu.cn/eeafj/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
});
});
}

View File

@ -9,7 +9,7 @@ import { VersionConfig } from "./version"
const execShellCommand = promisify(exec)
const downloadURL = "https://github.com/golangci/golangci-lint/releases/download"
const downloadURL = "https://gitea.fzu.edu.cn/eeafj/golangci-lint/releases/download"
const getAssetURL = (versionConfig: VersionConfig): string => {
let ext = "tar.gz"

View File

@ -142,7 +142,7 @@ export async function findLintVersion(mode: InstallMode): Promise<VersionConfig>
const versionWithoutV = `${reqLintVersion.major}.${reqLintVersion.minor}.${reqLintVersion.patch}`
resolve({
TargetVersion: `v${versionWithoutV}`,
AssetURL: `https://github.com/golangci/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
AssetURL: `https://gitea.fzu.edu.cn/eeafj/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
})
})
}