From 22eae4a284cb14c95109925871336625789518c6 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Thu, 25 Jul 2024 15:00:09 +0200 Subject: [PATCH 1/3] fix(fs): Apply requireLiteralLeadingDot config --- .changes/fix-fs-apply-leading-dot-config.md | 5 +++++ plugins/fs/src/commands.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-fs-apply-leading-dot-config.md diff --git a/.changes/fix-fs-apply-leading-dot-config.md b/.changes/fix-fs-apply-leading-dot-config.md new file mode 100644 index 000000000..cc9b4adc2 --- /dev/null +++ b/.changes/fix-fs-apply-leading-dot-config.md @@ -0,0 +1,5 @@ +--- +"fs": patch +--- + +Fixed an issue causing the plugin to ignore the `requireLiteralLeadingDot` config. diff --git a/plugins/fs/src/commands.rs b/plugins/fs/src/commands.rs index 1cb4c910e..81b9b8e72 100644 --- a/plugins/fs/src/commands.rs +++ b/plugins/fs/src/commands.rs @@ -854,7 +854,7 @@ pub fn resolve_path( .chain(global_scope.denies().iter().map(|e| e.path.clone())) .chain(command_scope.denies().iter().map(|e| e.path.clone())) .collect(), - require_literal_leading_dot: None, + require_literal_leading_dot: app.fs_scope().require_literal_leading_dot, }, )?; From 0e545f749824c876fab4d9e3bd941c6b35f80cc4 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Thu, 25 Jul 2024 15:16:26 +0200 Subject: [PATCH 2/3] fix deserialization --- plugins/fs/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/fs/src/config.rs b/plugins/fs/src/config.rs index d8a197140..db3bae45e 100644 --- a/plugins/fs/src/config.rs +++ b/plugins/fs/src/config.rs @@ -5,6 +5,7 @@ use serde::Deserialize; #[derive(Deserialize)] +#[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct Config { /// Whether or not paths that contain components that start with a `.` /// will require that `.` appears literally in the pattern; `*`, `?`, `**`, From 807fa8b14152fa89e39de2103b08ba2efd1cd2cc Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Thu, 25 Jul 2024 16:11:08 +0200 Subject: [PATCH 3/3] reword changefile [skip ci] --- .changes/fix-fs-apply-leading-dot-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changes/fix-fs-apply-leading-dot-config.md b/.changes/fix-fs-apply-leading-dot-config.md index cc9b4adc2..64bf594d6 100644 --- a/.changes/fix-fs-apply-leading-dot-config.md +++ b/.changes/fix-fs-apply-leading-dot-config.md @@ -2,4 +2,4 @@ "fs": patch --- -Fixed an issue causing the plugin to ignore the `requireLiteralLeadingDot` config. +Fixed an issue that caused the plugin to ignore the `requireLiteralLeadingDot` config.