Skip to content

Commit 9090a56

Browse files
committed
Build the correct URL to CLI package
1 parent bcc5f43 commit 9090a56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/gel/src/cli.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function runCli(
186186
return execSync(command, execOptions);
187187
}
188188

189-
async function findPackageUrl(): Promise<string> {
189+
async function findPackageUrl(): Promise<URL> {
190190
const arch = os.arch();
191191
const platform = os.platform();
192192

@@ -213,8 +213,8 @@ async function findPackageUrl(): Promise<string> {
213213
throw new Error(`Unsupported OS: ${platform}`);
214214
}
215215

216-
const pkg = `${EDGEDB_PKG_ROOT}/${dist}/gel-cli${ext}`;
217-
debug(" - Package URL:", pkg);
216+
const pkg = new URL(`/dist/${dist}/gel-cli${ext}`, EDGEDB_PKG_ROOT);
217+
debug(" - Package URL:", pkg.href);
218218
return pkg;
219219
}
220220

0 commit comments

Comments
 (0)