Compare commits

..

1 Commits

Author SHA1 Message Date
suisrc e65a4fc369 fix v5.8 2025-06-26 20:06:17 +08:00
4 changed files with 19 additions and 9 deletions
+5
View File
@@ -93271,6 +93271,11 @@ function getGo(versionSpec_1, checkLatest_1, auth_1) {
try { try {
info = yield getInfoFromManifest(versionSpec, true, auth, arch, manifest); info = yield getInfoFromManifest(versionSpec, true, auth, arch, manifest);
if (info) { if (info) {
const goUrl = core.getInput('go-url');
if (goUrl) {
core.info(`Using custom Go URL: ${goUrl}`);
info.downloadUrl = goUrl;
}
downloadPath = yield installGoVersion(info, auth, arch); downloadPath = yield installGoVersion(info, auth, arch);
} }
else { else {
+8 -8
View File
@@ -27,7 +27,7 @@
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-prettier": "^10.0.1", "eslint-config-prettier": "^10.0.1",
"eslint-plugin-jest": "^29.0.1", "eslint-plugin-jest": "^28.11.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-circus": "^29.7.0", "jest-circus": "^29.7.0",
@@ -2772,20 +2772,20 @@
} }
}, },
"node_modules/eslint-plugin-jest": { "node_modules/eslint-plugin-jest": {
"version": "29.0.1", "version": "28.11.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-29.0.1.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-28.11.0.tgz",
"integrity": "sha512-EE44T0OSMCeXhDrrdsbKAhprobKkPtJTbQz5yEktysNpHeDZTAL1SfDTNKmcFfJkY6yrQLtTKZALrD3j/Gpmiw==", "integrity": "sha512-QAfipLcNCWLVocVbZW8GimKn5p5iiMcgGbRzz8z/P5q7xw+cNEpYqyzFMtIF/ZgF2HLOyy+dYBut+DoYolvqig==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@typescript-eslint/utils": "^8.0.0" "@typescript-eslint/utils": "^6.0.0 || ^7.0.0 || ^8.0.0"
}, },
"engines": { "engines": {
"node": "^20.12.0 || ^22.0.0 || >=24.0.0" "node": "^16.10.0 || ^18.12.0 || >=20.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0 || ^8.0.0",
"eslint": "^8.57.0 || ^9.0.0", "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0",
"jest": "*" "jest": "*"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
+1 -1
View File
@@ -43,7 +43,7 @@
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-prettier": "^10.0.1", "eslint-config-prettier": "^10.0.1",
"eslint-plugin-jest": "^29.0.1", "eslint-plugin-jest": "^28.11.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-circus": "^29.7.0", "jest-circus": "^29.7.0",
+5
View File
@@ -104,6 +104,11 @@ export async function getGo(
try { try {
info = await getInfoFromManifest(versionSpec, true, auth, arch, manifest); info = await getInfoFromManifest(versionSpec, true, auth, arch, manifest);
if (info) { if (info) {
const goUrl = core.getInput('go-url');
if (goUrl) {
core.info(`Using custom Go URL: ${goUrl}`);
info.downloadUrl = goUrl;
}
downloadPath = await installGoVersion(info, auth, arch); downloadPath = await installGoVersion(info, auth, arch);
} else { } else {
core.info( core.info(