fix: github tag including '@'
This commit is contained in:
parent
2ee4c4b2f3
commit
04b0c5428d
4
mod.ts
4
mod.ts
|
@ -69,14 +69,14 @@ function asReadable$(entry: ConfigEntry): ReadableEntry {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "github": {
|
case "github": {
|
||||||
const [repo, version] = entry.source.split("@");
|
const [repo, ...version] = entry.source.split("@");
|
||||||
if (!version) {
|
if (!version) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Invalid source format: ${entry.source}
|
`Invalid source format: ${entry.source}
|
||||||
Expected: <repo>@<version>`,
|
Expected: <repo>@<version>`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
read = () => githubPick({ repo, version, pick });
|
read = () => githubPick({ repo, version: version.join(""), pick });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Reference in a new issue