fix: github tag including '@'

This commit is contained in:
Anton Nesterov 2023-02-11 16:06:20 +03:00
parent 2ee4c4b2f3
commit 04b0c5428d

4
mod.ts
View file

@ -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: {