mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(cli): disable global gitignore during tauri.conf.* lookup (#8688)
* fix: disable global gitignore There are cases when people use git to manage their dotfiles in the home directory. When a tauri projects uses other name than `src-tauri` for the rust source code, the lookup may fail if there's a global gitignore. * change file
This commit is contained in:
6
.changes/cli-global-gitignore.md
Normal file
6
.changes/cli-global-gitignore.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": patch:enhance
|
||||
"@tauri-apps/cli": patch:enhance
|
||||
---
|
||||
|
||||
Ignore global `.gitignore` when searching for tauri directory.
|
||||
@@ -31,6 +31,7 @@ pub fn walk_builder(path: &Path) -> WalkBuilder {
|
||||
|
||||
let mut builder = WalkBuilder::new(path);
|
||||
builder.add_custom_ignore_filename(".taurignore");
|
||||
builder.git_global(false);
|
||||
let _ = builder.add_ignore(default_gitignore);
|
||||
builder
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user