setup-edgedb
setup-edgedb copied to clipboard
Refactor fetching & matching packages from index into own file
This moves all the work for getting the CLI download url into a separate packages file.
There was some duplicated work in win.ts
that I either DRY-ed up or unified into the linux/osx code paths.
I enhanced the package index logic to work for any packages within the index,
as the test suite proves with edgedb-server-3
.
I know this isn't immediately useful, but it seemed like the right thing to do.
Now only the highest level function knows about the cli package.
I'm not sure why nightly is failing. I'd like to think it's unrelated to these changes. Is nightly tested on ~~master~~ main?