Skip to content

The path that load the specified env file is incorrect #39

@ttbadr

Description

@ttbadr

I got an odd issue, I specified the env file in the gradle.properties with a relative path. I think the path is relative to the root project path, but the log tells me the plugin lookup the env file under the first subproject path. I have no idea

I apply the plugin in the root project test

if I set the dotenv.filename=./env/.env.aks_fresh, the plugin will load the file from project/test/commons/env/.env.aks_fresh
if I set the dotenv.filename=../env/.env.aks_fresh, the plugin will load the file from project/env/.env.aks_fresh

the respect result is loading the file from project/test/env/.env.aks_fresh

if I set the dotenv.filename=.env.aks_fresh, the plugin will load the file from project/test/.env.aks_fresh, so seem the dotenv.filename did not support the file path, but only the file name, right?

I hope the dotenv.filename support the file path, I have lots of env file, and I want to put them under a folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions