Skip to content

Commit

Permalink
Update sources/corepackUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Jan 30, 2024
1 parent c8c89cf commit 86f53e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/corepackUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function parseURLReference(locator: URLLocator) {
build: hash.slice(1).split(`.`),
};
}
return {version: href, build: []};
return {version: encodeURIComponent(href), build: []};
}

export async function installVersion(installTarget: string, locator: Locator, {spec}: {spec: PackageManagerSpec}) {
Expand Down

0 comments on commit 86f53e3

Please sign in to comment.