Commit fa8191f8 authored by Wohlgemuth, Jason's avatar Wohlgemuth, Jason
Browse files

fix: Replace dotenv with dotenvy to clear security issue

parent 64c7cab6
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -890,12 +890,6 @@ dependencies = [
 "winapi 0.3.9",
]

[[package]]
name = "dotenv"
version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f"

[[package]]
name = "dotenvy"
version = "0.15.7"
@@ -1933,7 +1927,7 @@ dependencies = [
 "clap-verbosity-flag",
 "color-eyre",
 "console",
 "dotenv",
 "dotenvy",
 "exitcode",
 "glob",
 "indicatif",
@@ -1958,7 +1952,7 @@ dependencies = [
 "color-eyre",
 "console",
 "derive_more",
 "dotenv",
 "dotenvy",
 "env_logger",
 "exitcode",
 "fancy-regex",
+54 −54
Original line number Diff line number Diff line
@@ -447,7 +447,7 @@ FNDA:1,Script::expand_arguments_from
FNDA:1,Script::from_template
FNDA:1,Script::from_path
FNDA:1,Script::get_command
FNDA:1,Script::get_arguments
FNDA:2,Script::get_arguments
FNDA:0,Script::maybe_create_conda_environment
FNDA:1,Script::maybe_git_clone
FNDA:0,Script::python_default
@@ -455,7 +455,7 @@ FNDA:1,Script::run
FNDA:1,Script::with_current_dir
FNDA:1,Script::with_environment
FNDA:0,Script::with_envs
FNDA:2,StringTemplate::new
FNDA:1,StringTemplate::new
FNDA:1,StringTemplate::expand
FNDA:1,StringTemplate::get_variable
FNDA:1,StringTemplate::is_handlebars
@@ -469,7 +469,7 @@ FNDA:1,has_extension
FNDA:0,is_stdin_piped
FNDA:0,is_stdout_piped
FNDA:1,read_file
FNDA:1,to_string
FNDA:2,to_string
DA:362,1
DA:363,1
DA:367,2
@@ -478,10 +478,10 @@ DA:370,1
DA:371,1
DA:373,2
DA:374,1
DA:375,2
DA:376,4
DA:378,6
DA:379,2
DA:375,1
DA:376,2
DA:378,3
DA:379,1
DA:382,3
DA:383,1
DA:389,1
@@ -551,9 +551,9 @@ DA:501,0
DA:503,0
DA:505,1
DA:506,1
DA:507,2
DA:508,2
DA:509,2
DA:507,3
DA:508,3
DA:509,3
DA:510,2
DA:511,1
DA:515,0
@@ -587,7 +587,7 @@ DA:558,0
DA:559,0
DA:560,0
DA:562,1
DA:563,1
DA:563,2
DA:564,1
DA:566,0
DA:567,0
@@ -660,9 +660,9 @@ DA:687,2
DA:691,1
DA:692,1
DA:712,1
DA:713,2
DA:713,3
DA:716,2
DA:717,1
DA:717,2
DA:718,2
DA:719,2
DA:722,2
@@ -690,14 +690,14 @@ DA:782,1
DA:784,1
DA:785,1
DA:786,1
DA:787,1
DA:790,1
DA:787,2
DA:790,2
DA:791,1
DA:792,1
DA:793,2
DA:794,5
DA:795,3
DA:797,1
DA:793,1
DA:794,2
DA:795,1
DA:797,2
DA:801,0
DA:802,0
DA:803,0
@@ -733,41 +733,41 @@ DA:851,0
DA:855,1
DA:856,1
DA:857,1
DA:858,2
DA:859,2
DA:860,3
DA:861,1
DA:862,9
DA:863,2
DA:858,3
DA:859,3
DA:860,4
DA:861,2
DA:862,12
DA:863,3
DA:864,1
DA:865,1
DA:866,1
DA:867,1
DA:872,4
DA:873,3
DA:872,3
DA:873,2
DA:875,0
DA:876,0
DA:879,3
DA:880,3
DA:881,6
DA:882,9
DA:883,6
DA:886,6
DA:887,3
DA:879,1
DA:880,2
DA:881,3
DA:882,4
DA:883,3
DA:886,3
DA:887,2
DA:889,0
DA:890,0
DA:893,3
DA:894,3
DA:895,6
DA:893,1
DA:894,2
DA:895,3
DA:896,0
DA:897,0
DA:900,6
DA:901,3
DA:902,9
DA:903,3
DA:904,9
DA:905,9
DA:906,3
DA:900,3
DA:901,1
DA:902,5
DA:903,1
DA:904,5
DA:905,4
DA:906,2
DA:908,3
DA:909,3
DA:910,2
@@ -780,12 +780,12 @@ DA:926,1
DA:927,2
DA:928,1
DA:964,1
DA:965,2
DA:966,2
DA:965,1
DA:966,1
DA:969,0
DA:970,0
DA:971,0
DA:978,2
DA:978,1
DA:980,1
DA:987,1
DA:988,4
@@ -844,16 +844,16 @@ DA:1182,0
DA:1184,0
DA:1198,1
DA:1199,1
DA:1200,6
DA:1201,3
DA:1202,9
DA:1203,6
DA:1200,3
DA:1201,2
DA:1202,4
DA:1203,3
DA:1205,1
DA:1206,3
DA:1207,1
DA:1210,1
DA:1212,1
DA:1213,4
DA:1210,2
DA:1212,2
DA:1213,9
LF:384
LH:225
end_of_record
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ clap = { version = "4.4.2", features = ["derive"] }
clap-verbosity-flag = "2.2.0"
color-eyre = "0.6.3"
console = { version = "0.15.7", default-features = false, features = ["ansi-parsing"] }
dotenv = "0.15.0"
dotenvy = "0.15.0"
exitcode = "1.1.2"
glob = "0.3.1"
indicatif = "0.17.6"
+2 −2
Original line number Diff line number Diff line
use clap::Parser;
use dotenv::dotenv;
use dotenvy::dotenv;
use pipe_lib::Void;
use tracing::instrument;
use tracing_log::AsTrace;
@@ -26,7 +26,7 @@ fn main() -> Void {
    color_eyre::install()?;
    let args = Arguments::parse();
    match dotenv() {
        | Ok(_) if !dotenv::var(LOG_LEVEL).unwrap_or_default().is_empty() => {
        | Ok(_) if !dotenvy::var(LOG_LEVEL).unwrap_or_default().is_empty() => {
            // Configure tracing with a .env file
            let format = fmt::layer()
                .with_level(DISPLAY_LEVEL)
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ clap-verbosity-flag = "2.2.0"
color-eyre = "0.6.3"
console = { version = "0.15.7", default-features = false, features = ["ansi-parsing"] }
derive_more = "0.99.18"
dotenv = "0.15.0"
dotenvy = "0.15.0"
env_logger = "0.11.3"
exitcode = "1.1.2"
fancy-regex = "0.13.0"