fix: pkg changes for wrappers using cargo-pgrx 0.12.6 #1288
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
The original error
error: A hash was specified for clickhouse-rs-1.0.0-alpha.1, but there is no corresponding git dependency.
was resolved by
The newer version of the buildPgxExtension was able just to use the lockfile and the builtin fetch git capability.
In addition I added env vars for building on macOS
These weren't needed with the previous version of cargo-pgrx builder, but they are now. Similar to what we have here https://github.com/supabase/wrappers/blob/v0.4.3/.cargo/config.toml gave PGPORT a unique number which helps tests pass and avoid collisions.
I also bumped up the version of rust in the packages to 1.80.0 which
Added
NIX_LDFLAGS = "-L${postgresql}/lib -lpq";
for when linking, to look in PostgreSQL's lib directory and link against the PostgreSQL client library