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

Fix: Asset Cache On Windows & Asset Status #3525

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

DogeDark
Copy link
Member

@DogeDark DogeDark commented Jan 8, 2025

Problem
Due to Windows' long-form path variants, cached assets were being deleted causing long rebuilds for apps with lots of assets e.g. docsite.

The asset status would jump around a lot in terms of progress.

Fixes
We use the dunce crate to canonicalize assets in a few places, replacing fs::canonicalize. The changes work well on Windows, but it would be good to test other platforms. There may be other places we should canonicalize.

The asset status now tracks the completed assets instead of the current asset.

@DogeDark DogeDark added bug Something isn't working cli Related to the dioxus-cli program manganis Related to the manganis crate labels Jan 8, 2025
Copy link
Member

@jkelleyrtp jkelleyrtp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@jkelleyrtp jkelleyrtp merged commit a3812d6 into DioxusLabs:main Jan 8, 2025
17 checks passed
@DogeDark DogeDark deleted the fix-asset-cache branch January 8, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program manganis Related to the manganis crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants