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;
|
||||
}
|
||||
case "github": {
|
||||
const [repo, version] = entry.source.split("@");
|
||||
const [repo, ...version] = entry.source.split("@");
|
||||
if (!version) {
|
||||
throw new Error(
|
||||
`Invalid source format: ${entry.source}
|
||||
Expected: <repo>@<version>`,
|
||||
);
|
||||
}
|
||||
read = () => githubPick({ repo, version, pick });
|
||||
read = () => githubPick({ repo, version: version.join(""), pick });
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Reference in a new issue