Skip to content

fix: double escaped paths #2216

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

Merged
merged 1 commit into from
Apr 28, 2025
Merged

fix: double escaped paths #2216

merged 1 commit into from
Apr 28, 2025

Conversation

pd93
Copy link
Member

@pd93 pd93 commented Apr 28, 2025

Fixes #2208

in #2075 (released in v3.43.1), we changed the way that expanding paths works so that it directly uses mvdan's expand.Literal. However, this has resulted in us double-escaping paths because of our internal escape function. Switching to p.Document and removing the escape function seems to fix the problem.

I have double-checked that issues like #1551, #1590 and #2073 have not regressed.

Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

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

Thanks!

@pd93 pd93 merged commit b3c4007 into main Apr 28, 2025
14 checks passed
@pd93 pd93 deleted the 2208-fix-double-escaped-paths branch April 28, 2025 12:02
pd93 added a commit that referenced this pull request Apr 28, 2025
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.

Task creates spurious brand new directories on disk with backslashes preceding every space
2 participants