Skip to content

fix(persisted-scope): fix patterns usage (fix #25)#32

Closed
OrIOg wants to merge 0 commit into
tauri-apps:v1from
OrIOg:persisted-scope-fix
Closed

fix(persisted-scope): fix patterns usage (fix #25)#32
OrIOg wants to merge 0 commit into
tauri-apps:v1from
OrIOg:persisted-scope-fix

Conversation

@OrIOg
Copy link
Copy Markdown
Contributor

@OrIOg OrIOg commented Dec 16, 2022

PR Draft for fixing #25(explanation)

Current change breaks old .persistent-scope files deserialization.
Can be fixed by moving the pattern conversion in deserialization.

Using metadata with Tauri v1.

Suggestion for Tauri v2
Could be easier/cleaner if FsScopeEvent gave the "type" of allowed path(i.e : file, directory, recursive directory).
Might want to make a PR in Tauri itself.

As a Rust/Tauri neophyte, there must be a better way to handle that mutex/remove it.
Might be fixable when if we reuse the old serialization method if we move the pattern conversion in deserialization.

Any suggestions are welcome

@OrIOg OrIOg marked this pull request as ready for review December 27, 2022 18:29
@Beanow Beanow requested a review from a team January 7, 2023 17:42
JonasKruckenberg pushed a commit that referenced this pull request Jan 11, 2023
chore(deps): update dependency rollup to v2.65.0
@FabianLars FabianLars changed the base branch from dev to v1 May 3, 2023 07:59
@vasilvestre
Copy link
Copy Markdown

I think I have this issue. Should we wait for a merge or I can apply this patch somehow ?

@FabianLars
Copy link
Copy Markdown
Member

We can't merge it as long as it depends on a git version of tauri (and it would be ideal if we can implemented it in a way that does not need a tauri update to not break apps that can't upgrade tauri for some reason - that part is not a requirement)

@OrIOg OrIOg closed this Jun 25, 2023
@OrIOg OrIOg force-pushed the persisted-scope-fix branch 2 times, most recently from 3d11b41 to a305ad3 Compare June 25, 2023 13:56
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.

3 participants