fix: github tag resolve

This commit is contained in:
Anton Nesterov 2023-02-11 16:25:32 +03:00
parent b5936c24e5
commit c142d7cf37

3
mod.ts
View file

@ -76,7 +76,7 @@ function asReadable$(entry: ConfigEntry): ReadableEntry {
Expected: <repo>@<version>`, Expected: <repo>@<version>`,
); );
} }
read = () => githubPick({ repo, version: version.join(""), pick }); read = () => githubPick({ repo, version: version.join("@"), pick });
break; break;
} }
default: { default: {
@ -134,6 +134,7 @@ export async function* githubPick(
export async function* githubPickFiles( export async function* githubPickFiles(
{ repo, version, pick }: GithubPickOptions, { repo, version, pick }: GithubPickOptions,
): ReturnType<ReadableEntry["read"]> { ): ReturnType<ReadableEntry["read"]> {
console.log(`https://github.com/${repo}/archive/refs/tags/${version}.tar.gz`);
const targz = await fetch( const targz = await fetch(
`https://github.com/${repo}/archive/refs/tags/${version}.tar.gz`, `https://github.com/${repo}/archive/refs/tags/${version}.tar.gz`,
); );