allan2 / dotenvy

A well-maintained fork of the Rust dotenv crate
MIT License
605 stars 37 forks source link

Named pipes aren't supported out of the box #65

Open ChristianIvicevic opened 1 year ago

ChristianIvicevic commented 1 year ago

I am using Doppler to handle secrets and I am running doppler run --mount .env --command "while true; do sleep 1; done" which creates .env as a named pipe. dotenvy fails to parse anything from that file so I had to add the following as a workaround:

match File::open(".env") {
    Ok(file) => {
        dotenvy::from_read(file).ok();
    }
    Err(_) => {
        tracing::debug!("No .env file found");
    }
}

I wanted to ask whether you can look into supporting named pipes natively instead.

allan2 commented 1 year ago

Can you provide an example .env file?

allan2 commented 1 year ago

Hi @ChristianIvicevic, is this still an issue?