Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Fix #10 openssl-dev needed#11

Open
mielune wants to merge 1 commit intoQovery:mainfrom
mielune:main
Open

Fix #10 openssl-dev needed#11
mielune wants to merge 1 commit intoQovery:mainfrom
mielune:main

Conversation

@mielune
Copy link
Copy Markdown

@mielune mielune commented Jan 8, 2024

Fix de need of openssl-dev to build the backend.

@Tchoupinax
Copy link
Copy Markdown
Contributor

Hey,
Did you not need pkgconfig also? I believed I needed it

@mielune
Copy link
Copy Markdown
Author

mielune commented Jan 8, 2024

Hey, Did you not need pkgconfig also? I believed I needed it

No but now compilation failed inside the Rust build with include_str!("../db/schema.sql");:

I'm not a Rust dev so I don't know how to fix it :/

   Compiling backend v0.1.0 (/app)
error: couldn't read src/../db/schema.sql: No such file or directory (os error 2)
  --> src/database.rs:66:22
   |
66 |     let sql_schema = include_str!("../db/schema.sql");
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `backend` (bin "backend") due to previous error
The command '/bin/sh -c cargo build --release' returned a non-zero code: 101
make: *** [Makefile:5: docker_build_backend] Error 101

@sourabpramanik
Copy link
Copy Markdown

@mielune can you confirm if you have the db directory and inside it there should be schema.sql file? Attaching the image below for reference.
image

@mielune
Copy link
Copy Markdown
Author

mielune commented Jan 8, 2024

@mielune can you confirm if you have the db directory and inside it there should be schema.sql file? Attaching the image below for reference. image

Yes, I have this folder 👍

@Tchoupinax
Copy link
Copy Markdown
Contributor

@mielune please test with this current opened branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants