File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function parseVersionRange(
3232 return { range : "latest" , kind : "rc" } ;
3333 }
3434
35- if ( version === "latest" ) {
35+ if ( version === "latest" || version === "stable" ) {
3636 return { range : "latest" , kind : "stable" } ;
3737 }
3838
@@ -145,11 +145,11 @@ async function resolveLTS(): Promise<Version | null> {
145145async function resolveRelease ( range : string ) : Promise < Version | null > {
146146 if ( range === "latest" ) {
147147 const res = await fetchWithRetries (
148- "https://dl. deno.land/release-latest .txt" ,
148+ "https://github.com/denoland/ deno/raw/refs/heads/main/cli/lib/version .txt" ,
149149 ) ;
150150 if ( res . status !== 200 ) {
151151 throw new Error (
152- "Failed to fetch release version info from dl.deno.land . Please try again later." ,
152+ "Failed to fetch release version info from github.com . Please try again later." ,
153153 ) ;
154154 }
155155 let version : string | null = ( await res . text ( ) ) . trim ( ) ;
You can’t perform that action at this time.
0 commit comments