Skip to content

Commit

Permalink
Support both GEL_ and EDGEDB_ vars (#359)
Browse files Browse the repository at this point in the history
This allows edgedb-cli to pass all of the shared testcases. To simplify this logic we extract most of the env-var parsing to env.rs. This isn't a full cleanup of this code, but it makes it a little easier to parse what's going on.

Long term we'll need to untangle this error parsing code as it's quite complex and hard to follow.

There's a bit of code here where we need to "lie" that the configuration is complete when we find errors in the environment variables themselves. Ideally this would be done when we surface the errors instead, but that's a more complicated lift.
  • Loading branch information
mmastrac authored Nov 13, 2024
1 parent c545576 commit 4214a07
Show file tree
Hide file tree
Showing 3 changed files with 419 additions and 342 deletions.
Loading

0 comments on commit 4214a07

Please sign in to comment.