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

Static aliases fail to create directory structure #236

Closed bluelhf closed 1 year ago

bluelhf 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:

Static aliases do not attempt to create the directory tree of their target

The steps to reproduce this issue are as follows:

Attempt to use a static alias with a target directory (to which the files will be copied by Perseus) that does not yet exist in dist/ — The target engine will panic at run-time instead of creating the directory structure automatically.

A minimum reproducible example is not available.

Tribble internal data dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxhdXRob3Itd2lsbGluZy10by1pbXBs
arctic-hen7 commented 1 year ago

If I'm understanding you correctly, this is deliberate behavior, since the system needs to copy/symlink static aliases early on. The aliases must exist for this to work.

Could you explain exactly what you're trying to do?

bluelhf commented 1 year ago

Ah, I am simply not braining at the moment — the problem was that I had failed to update the target for generating the files with css_mod, and nothing was wrong with Perseus at all. Closing as intended behaviour... I should really get some sleep.

arctic-hen7 commented 1 year ago

Haha understood! I think we've all been somewhere like that!