fix: github tag resolve
This commit is contained in:
parent
b5936c24e5
commit
c142d7cf37
3
mod.ts
3
mod.ts
|
@ -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`,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue