2022-06-15 05:25:05 +02:00
|
|
|
[package]
|
|
|
|
name = "ignore-files"
|
2023-11-26 05:22:00 +01:00
|
|
|
version = "1.3.2"
|
2022-06-15 05:25:05 +02:00
|
|
|
|
|
|
|
authors = ["Félix Saparelli <felix@passcod.name>"]
|
|
|
|
license = "Apache-2.0"
|
|
|
|
description = "Find, parse, and interpret ignore files"
|
|
|
|
keywords = ["ignore", "files", "discover", "find"]
|
|
|
|
|
|
|
|
documentation = "https://docs.rs/ignore-files"
|
|
|
|
repository = "https://github.com/watchexec/watchexec"
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
rust-version = "1.58.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
2023-11-25 21:33:44 +01:00
|
|
|
futures = "0.3.29"
|
|
|
|
gix-config = "0.31.0"
|
2023-01-06 14:53:49 +01:00
|
|
|
ignore = "0.4.18"
|
2022-09-07 04:52:53 +02:00
|
|
|
miette = "5.3.0"
|
2023-11-25 21:33:44 +01:00
|
|
|
thiserror = "1.0.50"
|
|
|
|
tracing = "0.1.40"
|
2023-05-09 00:13:04 +02:00
|
|
|
radix_trie = "0.2.1"
|
|
|
|
dunce = "1.0.4"
|
2022-06-15 05:25:05 +02:00
|
|
|
|
2023-11-25 21:33:44 +01:00
|
|
|
[dependencies.tokio]
|
|
|
|
version = "1.33.0"
|
|
|
|
default-features = false
|
|
|
|
features = [
|
|
|
|
"fs",
|
|
|
|
"macros",
|
|
|
|
"rt",
|
|
|
|
]
|
2023-06-03 10:24:39 +02:00
|
|
|
|
2022-06-15 05:25:05 +02:00
|
|
|
[dependencies.project-origins]
|
2023-11-26 04:30:39 +01:00
|
|
|
version = "1.2.1"
|
2022-06-15 05:25:05 +02:00
|
|
|
path = "../project-origins"
|
Respect `applies_in` scope when processing nested ignores (#746)
Previously, when importing multiple nested ignore files, some info from
the parent—notably the "root" path—would be inherited. This lead to some
problems with matching of "pseudo-absolute" rules (those with a leading
slash) in nested ignore files (see #745 for more details). To fix this,
we now fully isolate each path of the tree during the import process.
This leads to more accurate, though unfortunately slightly less
performant, rule matching. The only time a builder is reused now is if
two input files have the same `applies_in` value, in which case they are
merged together.
I have added tests to ensure correctness and prevent a regression. I
also was careful to make sure no previous tests broke in any way (all
changes to existing tests were made in isolation, and thus are not
affected by the logic changes). As far as I can tell, the only behavior
change is that now some previously-ignored rules will now be applied,
which could, in very rare configurations, lead to files being
unintentionally ignored. However, due to the aforementioned logic bug,
those files were all ignored by git already, so I suspect the number of
people actually caught off guard by this change to be extremely low,
likely zero.
Fixes #745.
2023-12-30 02:12:59 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
tracing-subscriber = "0.3.6"
|