8000 Sam/build ami local by samrose · Pull Request #1547 · supabase/postgres · GitHub
[go: up one dir, main page]

Skip to content

Sam/build ami local #1547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
May 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: dynamic port handling since it can collide with parallel test
  • Loading branch information
samrose committed May 1, 2025
commit 01095742d3ff86239ead5071213564ea46d8c738
5 changes: 4 additions & 1 deletion nix/ext/pg_jsonschema.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ buildPgrxExtension_0_12_6 rec {
env = lib.optionalAttrs stdenv.isDarwin {
POSTGRES_LIB = "${postgresql}/lib";
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
PGPORT = "5433";
PGPORT = toString (5441 +
(if builtins.match ".*_.*" postgresql.version != null then 1 else 0) + # +1 for OrioleDB
((builtins.fromJSON (builtins.substring 0 2 postgresql.version)) - 15) * 2); # +2 for each major version

};

cargoLock = {
Expand Down
Loading
0