You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotenvy::Error::LineParse(line, index)=> log::info!("{} Parsing failed within the specified environment file: {} at index: {} of the value: {}",colors::yellow("Warning"), env_file_name, index, line),
1883
1885
dotenvy::Error::Io(_)=> log::info!("{} The `--env-file` flag was used, but the environment file specified '{}' was not found.",colors::yellow("Warning"),env_file_name),
1884
1886
dotenvy::Error::EnvVar(_)=> log::info!("{} One or more of the environment variables isn't present or not unicode within the specified environment file: {}",colors::yellow("Warning"),env_file_name),
1885
1887
_ => log::info!("{} Unknown failure occurred with the specified environment file: {}", colors::yellow("Warning"), env_file_name),
let env_vars_from_env_file = match cli_options.env_file_name(){
568
-
Some(env_filename) => {
569
-
log::info!("{} Environment variables from the file \"{}\" were embedded in the generated executable file",crate::colors::yellow("Warning"), env_filename);
570
-
get_file_env_vars(env_filename.to_string())?
568
+
Some(env_filenames) => {
569
+
letmut aggregated_env_vars = IndexMap::new();
570
+
for env_filename in env_filenames.iter().rev(){
571
+
log::info!("{} Environment variables from the file \"{}\" were embedded in the generated executable file",crate::colors::yellow("Warning"), env_filename);
572
+
573
+
let env_vars = get_file_env_vars(env_filename.to_string())?;
0 commit comments