Skip to content
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

How to rebuild and launch locally from current develop? (no bin sql-generator ) #200

Closed
comdiv opened this issue Sep 21, 2021 · 1 comment

Comments

@comdiv
Copy link

comdiv commented Sep 21, 2021

  1. clone repository
  2. switch to develop
  3. cargo install --path cargo-pgx
  4. cargo pgx init

Trying to build any extension that works well with published 0.1.22:

it fails while no bin sql-generator for cargo build --bin sql-generator

what i have missed?

@comdiv
Copy link
Author

comdiv commented Sep 21, 2021

thanks to discord people

  1. cargo install --path cargo-pgx --force
  2. cargo pgx init
  3. apply all staff from Introduce a more robust SQL generator #165
  4. NOTE! copy explicitly any pgx-linker-script.sh from examples to .cargo - otherwise cannot build
  5. NOTE! it's required to switch local dependencies to relative paths ../pgx/pgx and so one - otherwise pg_binary_magic() - or you should install all crates locally
  6. NOTE! you MUST to launch cargo pgx schema before any other cargo ... otherwise sql_generator will not be created and any build fails

After this things - it's start to build from develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant