Open anatawa12 opened 6 months ago
Since tauri-cli pass is_dir = true to ignore crate, I think this might be a bug of ignore
can confirm this is also an issue with the latest version of the cli beta v2.0.0-beta.11
can confirm this is also an issue with the latest version of the cli beta v2.0.0-beta.11
Yes.
bash-3.2$ cargo tauri --version
tauri-cli 2.0.0-beta.11
bash-3.2$ cat .taurignore
/*
!/src
!/*.toml
!/*.rs
bash-3.2$ cargo tauri dev
Running BeforeDevCommand (`:`)
Finished dev [unoptimized + debuginfo] target(s) in 0.31s
^Cbash-3.2$
bash-3.2$ cargo tauri --version
tauri-cli 2.0.0-beta.11
bash-3.2$ cat .taurignore
#/*
!/src
!/*.toml
!/*.rs
bash-3.2$ cargo tauri dev
Running BeforeDevCommand (`:`)
Info Watching /Users/anatawa12/RustroverProjects/tauri-issue-9163 for changes...
Finished dev [unoptimized + debuginfo] target(s) in 0.47s
^Cbash-3.2$
Sorry, I meant is as I can confirm this is also an issue, as I am also having it with the newest beta haha, didnt mean it as a question
Describe the bug
taurignore excluding all file except for few of crate excludes entire crate
at crate root should not ignore files in
src
folder but tauri cli does not watch entire crateI confirmed this configuration works with gitignore so I think this is a bug in tauri.
I reproducible with both tauri cli v1.5.10 and v1.5.11.
Reproduction
https://github.com/anatawa12/tauri-issue-9163
run
cargo tauri dev
will not showWhen I replaced
IgnoreMatcher::is_ignore
with the following codeshows the following message.
Expected behavior
taurignore excluding all file except for few should not exclude folder from watching.
Full
tauri info
outputStack trace
No response
Additional context
Gitignore::matched
andGitignore::matched_path_or_any_parents
returnsIgnore(Glob{original:"/*"})
for the folder contains.gitignore
file.