From b31a50ec78ade22c48b09e4c5f99d6cdef0db5c2 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sat, 13 Apr 2024 23:44:39 +0900 Subject: [PATCH] Fix const name --- src/installer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/installer.ts b/src/installer.ts index f229206..15ef11d 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -10,7 +10,7 @@ import {StableReleaseAlias} from './utils'; type InstallationType = 'dist' | 'manifest'; -const golangDownloadUrl = 'https://go.dev/dl/?mode=json&include=all'; +const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all'; export interface IGoVersionFile { filename: string; @@ -338,7 +338,7 @@ export async function findMatch( let match: IGoVersion | undefined; const candidates: IGoVersion[] | null = await module.exports.getVersionsDist( - golangDownloadUrl + GOLANG_DOWNLOAD_URL ); if (!candidates) { throw new Error(`golang download url did not return results`); @@ -436,7 +436,7 @@ async function resolveStableVersionDist(versionSpec: string, arch: string) { const archFilter = sys.getArch(arch); const platFilter = sys.getPlatform(); const candidates: IGoVersion[] | null = await module.exports.getVersionsDist( - golangDownloadUrl + GOLANG_DOWNLOAD_URL ); if (!candidates) { throw new Error(`golang download url did not return results`);