dotenvy icon indicating copy to clipboard operation
dotenvy copied to clipboard

Named pipes aren't supported out of the box

Open ChristianIvicevic opened this issue 3 years ago • 2 comments

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.

ChristianIvicevic avatar Feb 24 '23 12:02 ChristianIvicevic

Can you provide an example .env file?

allan2 avatar Feb 28 '23 16:02 allan2

Hi @ChristianIvicevic, is this still an issue?

allan2 avatar May 25 '23 14:05 allan2