Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

creating a packr/v2 box loads .env files #245

Closed
wayneashleyberry opened this issue Oct 11, 2019 · 1 comment
Closed

creating a packr/v2 box loads .env files #245

wayneashleyberry opened this issue Oct 11, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@wayneashleyberry
Copy link

wayneashleyberry commented Oct 11, 2019

packr depends on envy, envy loads .env files in an init() function. I'd consider this a side-effect and don't think it should happen automatically. This means that by simply importing packr.New any .env files will be automatically processed.

For my use case, we only ever load .env files during local development, and do so explicitly using the godotenv command — but now we have no control over that because any package that depends on packr.Box will load .env files.

@stanislas-m
Copy link
Member

Fixed with #257.

@stanislas-m stanislas-m added the bug Something isn't working label Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants