[bug] tauri_plugin::Builder
directly modifies the source directory for the plugin that's being built
#11187
Labels
tauri_plugin::Builder
directly modifies the source directory for the plugin that's being built
#11187
Describe the bug
tauri_plugin::Builder
directly modifies the source code of the plugin that's being built to add the permissions autogenerated files. This is actually a bad practice as per https://doc.rust-lang.org/cargo/reference/build-script-examples.html#code-generation:As a result, building a tauri plugin crate in special environments that protect the source code of crates against writes like nix becomes quite challenging. The build fails with errors of the type:
Maybe it is enough to just check in all those files in git? Not sure...
Reproduction
No response
Expected behavior
Plugin crates can be built on a source code protected environment.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: