Skip to content

Commit

Permalink
fix(cli): disable global gitignore during tauri.conf.* lookup (#8688)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wvffle authored Jan 29, 2024
1 parent 2631e97 commit b3209bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/cli-global-gitignore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---

Ignore global `.gitignore` when searching for tauri directory.
1 change: 1 addition & 0 deletions tooling/cli/src/helpers/app_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b3209bb

Please sign in to comment.