near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

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

Closed Madgeniusblink closed 1 year ago

Madgeniusblink commented 1 year ago

So I followed the README to set up the indexer.

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 commented 1 year ago

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 commented 1 year ago

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