Skip to content

Commit c2c6707

Browse files
authored
Choose latest convex binary in evals (#811)
We guarantee that the version marked as `latest` will always have the precompiled binary for all platforms. Thus, we should only use these and not prerelease version. Fixes a bug where a platform's binary could be missing.
1 parent a665a3b commit c2c6707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-kitchen/convexBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const admin_key =
1818

1919
const convexRelease = fetch('https://api.github.com/repos/get-convex/convex-backend/releases')
2020
.then((r) => r.json())
21-
.then((releases) => releases[0]);
21+
.then((releases) => releases.find((release: any) => release.prerelease === false));
2222

2323
const downloadBinaryMutex = new Mutex();
2424
const portMutex = new Mutex();

0 commit comments

Comments
 (0)