-
Notifications
You must be signed in to change notification settings - Fork 55
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
Use .localeapprc
as config filename
#262
Conversation
.localeapp
as config filename.localeapprc
as config filename
`.env` is a general purpose name and might be taken by other app specific environment settings. Let's use a name that actually says what this file is used for.
Hi @xijo and thanks for your contribution. Would you mind describing why Feel free to describe your whole usecase and/or workflow and the details of the issue you are trying to solve: I'd be happy to understand it and help. |
in one of our repos the
I went with the the former because it fits into the UNIX pattern of dot rc files containing startup information for the according application. |
@michaelbaudino What's the status of this PR? |
Hi @xijo, First, sorry for the response delay 😞 We've discussed your suggestion with the team and we have got a few remarks and questions for you, if you don't mind:
I know it's a lot of questions, and I'm sorry, but we're really trying to understand your needs here, without breaking backward compatibility. |
Hi @michaelbaudino, Thanks for your response 👍 I'll try to clarify my concerns a bit more. First of all: I do not have any problem nor am I trying to change the way I do have several projects that contain a Within these projects it is currently not possible to use the localeapp cli since it treats the folder as a file and crashes when attempting to read it. Still, a configuration file should be properly named. I'd go for
Thanks and best, |
Gotcha! Your ultimate purpose is good practice hygiene: we love that 😍 And OK, I totally get that the CLI crashes when In terms of good practices, the right approach would finally be a breaking change (i.e. a major version bump) that reads neither |
Sounds good 👍 I wouldn't necessarily say that having a config file is bad. Since you'll keep the |
As reported in #262, `.env` can sometimes be a directory, in which case, any CLI command fails with `Errno::EISDIR: Is a directory @ io_fread`. This commit checks that `.env` is a regular file before trying to read it.
@xijo Version 3.1.2 should fix the I'll close this for now, but I've created an issue to stop reading |
Great, thanks 👍 |
.env
is a general purpose name and might be taken by other appspecific environment settings. Let's use a name that actually says what
this file is used for.