Skip to content

Conversation

@Mishra-coder
Copy link

@Mishra-coder Mishra-coder commented Nov 18, 2025

Description

This PR adds automatic cleanup of outdated autogenerated permission files.
Previously, old .toml files stayed in the autogenerated folder even after commands were removed, causing stale permissions to load at runtime.

What’s changed

  • Compare existing autogenerated files with the current command list
  • Remove files that no longer match any command

Why

Prevents stale permission files, reduces confusion, and keeps generated output accurate.

Related Issue

Fixes #14320

@Mishra-coder Mishra-coder requested a review from a team as a code owner November 18, 2025 18:52
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Nov 18, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

Package Changes Through ec13c28

There are 7 changes which include @tauri-apps/api with patch, tauri-utils with patch, tauri-cli with patch, tauri with patch, tauri-bundler with patch, @tauri-apps/cli with patch, tauri-macos-sign 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.9.0 2.9.1
tauri-utils 2.8.0 2.8.1
tauri-macos-sign 2.3.0 2.3.1
tauri-bundler 2.7.3 2.7.4
tauri-runtime 2.9.1 2.9.2
tauri-runtime-wry 2.9.1 2.9.2
tauri-codegen 2.5.1 2.5.2
tauri-macros 2.5.1 2.5.2
tauri-plugin 2.5.1 2.5.2
tauri-build 2.5.2 2.5.3
tauri 2.9.3 2.9.4
@tauri-apps/cli 2.9.4 2.9.5
tauri-cli 2.9.4 2.9.5

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


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

@Mishra-coder
Copy link
Author

Mishra-coder commented Nov 19, 2025

@FabianLars,@Legend-Master PR is ready for mearge please review and suggest changes if required..

Copy link
Contributor

@Legend-Master Legend-Master left a comment

Choose a reason for hiding this comment

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

Thanks! Also do you mind adding a change file?

https://github.com/tauri-apps/tauri/blob/dev/.changes/README.md


use std::collections::HashSet;

let expected_files: HashSet<String> =
Copy link
Contributor

Choose a reason for hiding this comment

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

We can push a list of generated files from this time near the let out_path = path.join(format!("{command}.toml")); above

@Mishra-coder Mishra-coder force-pushed the feat/cleanup-autogenerated-permissions branch from b9b9353 to bf7244e Compare November 24, 2025 13:23
@socket-security
Copy link

socket-security bot commented Nov 24, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​changesets/​cli@​2.29.79710010093100

View full report

@Mishra-coder
Copy link
Author

@Legend-Master Please review and let me know if anything else is needed.

@Mishra-coder Mishra-coder force-pushed the feat/cleanup-autogenerated-permissions branch from 5a258b1 to ec13c28 Compare November 24, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

[feat] Remove outdated autogenerated permission files

2 participants