From 67fdd1f39c3155ddd2f3bddeb654f40dd3a6e4aa Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 10 Sep 2022 15:46:48 +0200 Subject: [PATCH] fix: ignore fs_permissions via env (#3162) --- config/src/lib.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config/src/lib.rs b/config/src/lib.rs index 9bd571ad6a42..163c04d46a01 100644 --- a/config/src/lib.rs +++ b/config/src/lib.rs @@ -1444,13 +1444,21 @@ impl From for Figment { // merge environment variables figment = figment - .merge(Env::prefixed("DAPP_").ignore(&["REMAPPINGS", "LIBRARIES", "FFI"]).global()) - .merge(Env::prefixed("DAPP_TEST_").ignore(&["CACHE", "FUZZ_RUNS", "DEPTH"]).global()) + .merge( + Env::prefixed("DAPP_") + .ignore(&["REMAPPINGS", "LIBRARIES", "FFI", "FS_PERMISSIONS"]) + .global(), + ) + .merge( + Env::prefixed("DAPP_TEST_") + .ignore(&["CACHE", "FUZZ_RUNS", "DEPTH", "FFI", "FS_PERMISSIONS"]) + .global(), + ) .merge(DappEnvCompatProvider) .merge(Env::raw().only(&["ETHERSCAN_API_KEY"])) .merge( Env::prefixed("FOUNDRY_") - .ignore(&["PROFILE", "REMAPPINGS", "LIBRARIES", "FFI"]) + .ignore(&["PROFILE", "REMAPPINGS", "LIBRARIES", "FFI", "FS_PERMISSIONS"]) .map(|key| { let key = key.as_str(); if Config::STANDALONE_SECTIONS.iter().any(|section| {