Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upinfer_schema! fail to find .env in local project if it is inside a workspace #1696
Comments
This comment has been minimized.
|
We are relaying on the |
sgrif
closed this
May 16, 2018
This comment has been minimized.
limira
commented
May 17, 2018
|
I reported this to dotenv. It is not an issue in |
This comment has been minimized.
daboross
commented
May 18, 2018
|
I believe this is an issue in diesel - it uses dotenv, but the error is in how diesel is using The method it's using, If this is deemed a real issue, the only way to fix this will be to have diesel change the working directory or use a different function from |
This comment has been minimized.
limira
commented
May 19, 2018
•
|
@weiznich, @sgrif, what do you think? Edit: |
limira commentedMay 16, 2018
Setup
Versions
Feature Flags: ["sqlite"]
Problem Description
What are you trying to accomplish?
I have a workspace like this:
If I put
DATABASE_URLin.envat project root::std::env::var("DATABASE_URL")found itinfer_schema("dotenv:DATABASE_URL")give errorIf
DATABASE_URLis in.envat workspace root:infer_schemaworksWhat is the expected output?
infer_schemashould works with.envinside project folderChecklist