-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
CRLF line endings in .env file break warden env up #380
Comments
@navarr this problem looks familiar to me. I encountered this issue when I was generating .env files incorrectly. What was incorrect at that time was that I quoted every value by default. Warden didn't seem to like that. You config file looks fine to me. Perhaps the file has Windows line endings? |
@tdgroot You got it in one, thanks! Working every day in Mac, it stopped being something I'd even consider having to think about. Appreciate it! |
I can easily reproduce this by changing line endings from LF to CRLF:
Would it be worth it perhaps to update
Sed removes the trailing '\n' when it parses for matching, hence the use of |
It'd certainly be a nice UX tweak to prevent issues like this that someone may not notice or think to look at |
System: Ubuntu WSL2 on Windows 10, Docker Desktop setup for WSL2.
.env:
Not really sure what's going on here. I have another environment with WARDEN_ENV_TYPE=laravel that launches fine:
Warden 0.11.0:
The text was updated successfully, but these errors were encountered: