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 leptos build fails #358

Open
holg opened this issue Sep 1, 2024 · 1 comment
Open

cargo leptos build fails #358

holg opened this issue Sep 1, 2024 · 1 comment

Comments

@holg
Copy link

holg commented Sep 1, 2024

cargo leptos build looks for the server binary always in
target/debug
and then fails with:

Error: at `~/.cargo/git/checkouts/cargo-leptos-eb87bffcd2ca8f75/5dd5ec2/src/compile/server.rs:40:22`

Caused by:
    0: at `~/.cargo/git/checkouts/cargo-leptos-eb87bffcd2ca8f75/5dd5ec2/src/service/site.rs:117:44`
    1: Could not read "target/debug/test_leptos" at `/Users/htr/.cargo/git/checkouts/cargo-leptos-eb87bffcd2ca8f75/5dd5ec2/src/ext/fs.rs:44:10`
    2: No such file or directory (os error 2)

in fact everything builds well,
but the binary is located in target/TARGET_TRIPLE/debug.
In my case i can find the binary in target/aarch64-apple-darwin/
if i copy this into target/debug
it works, but sure this i not nice.

@holg holg changed the title cargo leptos buil / serve fails cargo leptos build fails Sep 1, 2024
holg pushed a commit to holg/cargo-leptos that referenced this issue Sep 1, 2024
holg pushed a commit to holg/cargo-leptos that referenced this issue Sep 1, 2024
@holg
Copy link
Author

holg commented Oct 24, 2024

it still happens, when you do cross platform builds, so to check as well for the TARGET_TRIPLE, does not harm i guess?

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