question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: add `.env` files

See original GitHub issue

This is a feature request to add .env files to identify

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Cediddicommented, Aug 4, 2022

I guess we can close this issue because 2.5.3 is published to pypi 😃 Thanks Anthony and Thanks Wes.

1reaction
Cediddicommented, Aug 2, 2022

12 factors app is a great methodology, but that doesn’t mean every project which deals with dotenv files has to follow it perfectly. But that doesn’t change the fact that there’s a dotenv file format that’s being widely used, and it should be recognized by this library.

In my case, I’m writing a hook to check SOPS encrypted files, and one of the formats SOPS support is dotenv files (sharing pre-filled .example.env files for development environment setups is something I saw multiple times). Another case might be forbidding dotenv files to be committed via pre-commit hooks. And the last thing that comes to my mind is a linter for dotenv files, (https://github.com/dotenv-linter/dotenv-linter)

So there is indeed a dotenv file format, and there are legitimate use cases for those in the context of pre-commit hooks.

🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Feature Request: Generating .env.example file from a ...
Hi,. Sometimes we can not share .env file. However it would be useful if we could generate a .env.example from it which contains...
Read more >
Environment Variables: What They Are and How To Use Them
Let's begin with the most basic way of adding environment variables — env files. In your project root, create a new file called...
Read more >
Add env_file option to CMake Command Mode - Development
Feature Request : Add env_file option to CMake Command Mode ... Hello! I propose adding a new option to cmake -E that takes...
Read more >
Environment variables in Compose | Docker Documentation
If you have multiple environment variables, you can substitute them by adding them to a default environment variable file named .env or by...
Read more >
Feature Request: Expose environment variables to JS/TS
env.NODE_ENV . In Hugo I can do something similar with getenv "SOME_API_KEY" . But this is not exposed to JavaScript/TypeScript files compiled ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found