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

Cargo build --release fails when running on ubuntu 22 #302

Closed
Madgeniusblink opened this issue Sep 8, 2022 · 2 comments
Closed

Cargo build --release fails when running on ubuntu 22 #302

Madgeniusblink opened this issue Sep 8, 2022 · 2 comments
Assignees

Comments

@Madgeniusblink
Copy link

Madgeniusblink commented Sep 8, 2022

So I followed the README to set up the indexer.

  • installed rust version 1.63.0
  • ran sudo apt install libpq-dev - cargo install diesel_cli --no-default-features --features "postgres" - diesel migration run. this command failed with error applying hunk #1. I then manually copy-pasted SQL for this in Postgres

All of this worked fine. However, when I'm trying to run cargo build --release it gives the following error. Any help would be appreciated. Thank you!

@sotcsa
Copy link

sotcsa commented Sep 9, 2022

The same issue described in #299
I have tried to run cargo build without diesel run -> no issue
But if run first diesel run -> "error applying hunk #1" and after it cargo build fails (because diesel changed that schema.rs)

Maybe the documentation is not full and we are trying to build in a wrong way the project.

@Madgeniusblink
Copy link
Author

Closing this issue as I found a workaround. Check @CodeDem comment on #299

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

3 participants