Skip to content

Commit

Permalink
fix: ignore fs_permissions via env (foundry-rs#3162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Sep 10, 2022
1 parent a8f2abc commit 67fdd1f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1444,13 +1444,21 @@ impl From<Config> 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| {
Expand Down

0 comments on commit 67fdd1f

Please sign in to comment.