You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status: Downloaded newer image for ghcr.io/cross-rs/x86_64-unknown-linux-musl:0.2.5
warning: /project/lib/Cargo.toml: unused manifest key: bench.0.all-features
warning: [email protected]: Could not find index.html in ./assets_tmp. Skipping JS build.
warning: [email protected]: Could not find ./assets_tmp , copying from ../browser/data-browser/dist
Compiling atomic-server v0.37.0 (/project/server)
error: couldn't read server/src/handlers/../../assets_tmp/index.html: No such file or directory (os error 2)
--> server/src/handlers/single_page_app.rs:13:20
|
13 | let template = include_str!("../../assets_tmp/index.html");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
For some reason the dist folder is not properly copied to assets_tmp.
I'd assume this is a problem with build.rs, but I fail to see what is going wrong.
If I run earthly -i --org ontola --sat henk -P --push +docker-all --tags="latest,v0.37.0", and try to find out where the files are, I notice that the assets_tmp folder is missing - even after the "Could not find ./assets_tmp , copying from ../browser/data-browser/distwarning was printed. I also see that thedist` folder is there and has the files, so it's not as if it's copying an empty folder or something.
I tried running cargo build on the same machine, and that seems to run just fine. Could it be that cross does not properly copy the files? Or maybe it moves things?
One solution is to manually copy the js assets to the right dir.
The text was updated successfully, but these errors were encountered:
For some reason the
dist
folder is not properly copied toassets_tmp
.I'd assume this is a problem with
build.rs
, but I fail to see what is going wrong.If I run
earthly -i --org ontola --sat henk -P --push +docker-all --tags="latest,v0.37.0"
, and try to find out where the files are, I notice that theassets_tmp
folder is missing - even after the "Could not find ./assets_tmp , copying from ../browser/data-browser/distwarning was printed. I also see that the
dist` folder is there and has the files, so it's not as if it's copying an empty folder or something.I tried running
cargo build
on the same machine, and that seems to run just fine. Could it be thatcross
does not properly copy the files? Or maybe it moves things?One solution is to manually copy the
js
assets to the right dir.The text was updated successfully, but these errors were encountered: