framesurge / perseus

A state-driven web development framework for Rust with full support for server-side rendering and static generation.
https://framesurge.sh/perseus/en-US
MIT License
2.15k stars 89 forks source link

Fail proceed 'perseus build' after upgraded to v0.4.1 #290

Closed mhfan closed 1 year ago

mhfan commented 1 year ago

This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels. The author described their issue as follows:

$ perseus build � Installing external tools...❌ Error: couldn't extract 'wasm-bindgen' (do you have the necessary permissions?) Caused by: failed to iterate over archive Caused by: failed to fill whole buffer

The steps to reproduce this issue are as follows:

$ perseus new foo $ cd foo $ perseus build

perseus-cli@0.4.0 works.

A minimum reproducible example is available at <>.

Tribble internal data dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWNsaQ==
mhfan commented 1 year ago

I believe this patch will fix it: https://github.com/framesurge/perseus/pull/291/commits/4bc54b8121a1686ac33083c26da1f1612c572d7d

arctic-hen7 commented 1 year ago

Great, have you tried installing the CLI from there using a git dependency to make sure? If so, I'm happy to release v0.4.1 ASAP.

mhfan commented 1 year ago

Yes, I checked and it works now.

$ cargo install --git https://github.com/framesurge/perseus.git perseus-cli

$ perseus new foo $ cd foo

$ perseus build

� Generating Cargo lockfile...✅ � Installing external tools...✅ [1/2] � Generating your app...✅ [2/2] �️ Building your app to Wasm...✅