Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundException thrown when .lein-env file is not found #73

Open
uris77 opened this issue Jun 22, 2017 · 1 comment
Open

FileNotFoundException thrown when .lein-env file is not found #73

uris77 opened this issue Jun 22, 2017 · 1 comment

Comments

@uris77
Copy link

uris77 commented Jun 22, 2017

We have a project where we use environ and in dev we have a profiles.clj, but when building we providing everything via system environment vars. When building the project in Jenkins, we get a FileNotFoundException when it tries to read the .lein-env file, which just stops the entire build and never gets an opportunity to even read the system vars. Is it possible to add a try-catch block to read-env to handle these Exceptions?

@weavejester
Copy link
Owner

Could you explain your setup and the exception you get in a little more detail? Environ only tries to load the .lein-env file if that file exists. If it doesn't exist, it doesn't load it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants