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(core): manually simplify patterns for fs scope #11730

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

amrbashir
Copy link
Member

closes #11614

Remove UNC manually, instead of dunce::simplified because path could have * in it and that's not allowed on Windows and dunce::simplified will check that and return path as is without simplification resulting in a missing pattern in scope

for the scope pattern \\?\C:\path\to\dir\**, we expect the scope to have:

  • \\?\C:\path\to\dir\**
  • C:\path\to\dir\**

but if we use dunce::simplified, it will see ** as invalid path component on Windows and will not simplify the path resulting in a scope that only has \\?\C:\path\to\dir\**

closes #11614

Remove UNC manually, instead of `dunce::simplified` because `path` could have `*` in it and that's not allowed on Windows and `dunce::simplified` will check that and return `path` as is without simplification resulting in a missing pattern in scope

for the scope pattern `\\?\C:\path\to\dir\**`, we expect the scope to have:
- `\\?\C:\path\to\dir\**`
- `C:\path\to\dir\**`

but if we use `dunce::simplified`, it will see `**` as invalid path component on Windows and will not simplify the path resulting in a scope that only has `\\?\C:\path\to\dir\**`
@amrbashir amrbashir requested a review from a team as a code owner November 19, 2024 01:19
Copy link
Contributor

Package Changes Through b1163a2

There are 8 changes which include tauri-bundler with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri with minor, tauri-runtime with minor, tauri-runtime-wry with minor, @tauri-apps/api with patch, tauri-utils with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.1.1 2.1.2
tauri-utils 2.1.0 2.1.1
tauri-bundler 2.1.0 2.2.0
tauri-runtime 2.2.0 2.3.0
tauri-runtime-wry 2.2.0 2.3.0
tauri-codegen 2.0.3 2.0.4
tauri-macros 2.0.3 2.0.4
tauri-plugin 2.0.3 2.0.4
tauri-build 2.0.3 2.0.4
tauri 2.1.1 2.2.0
@tauri-apps/cli 2.1.0 2.2.0
tauri-cli 2.1.0 2.2.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@amrbashir amrbashir merged commit a09e48e into dev Nov 19, 2024
19 checks passed
@amrbashir amrbashir deleted the fix/fs-scope-simplification branch November 19, 2024 22:50
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.

[bug] "forbidden path" when calling exists with absolute resource path for non-existing file
2 participants