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: windows path canonicalization bug in static folder #762

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Mar 27, 2023

Description of change

The static folder will fail to be provisioned on windows due to path canonicalization converting the input path to UNC. This PR fixes that by using the dunce crate, like we did in cargo-shuttle.

How Has This Been Tested (if applicable)?

Tested local run of examples/axum/static-files with and without this fix on windows. Without this fix, it will fail to provision the static folder for local runs, but deployments work.

Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

Nice, thanks O 🥳

@oddgrd oddgrd merged commit 44068cb into shuttle-hq:main Mar 28, 2023
@oddgrd oddgrd deleted the fix/windows-static-folder-path-bug branch March 28, 2023 07:59
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

Successfully merging this pull request may close these issues.

2 participants