tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.36k stars 2.58k forks source link

fix(core): manually simplify patterns for fs scope #11730

Closed amrbashir closed 2 days ago

amrbashir commented 3 days ago

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:

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\**

github-actions[bot] commented 3 days ago

Package Changes Through b1163a297af566f4fd3d7a41b7e737c0d8955bde

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