LinkinStars commented on PR #1464:
URL: https://github.com/apache/answer/pull/1464#issuecomment-3717213270

   @maishivamhoo123 I verified this feature, and it has issues. It fails to 
correctly read environment variables via .env. This is clearly because the 
current environment variables are not read within the function itself, but 
rather within the var scope. 
https://github.com/apache/answer/blob/3000e3aec0814b710d90bc853115ac36078cfe23/internal/install/install_main.go#L31
 Therefore, using `godotenv.Load` in `init()` does not ensure all environment 
variables are properly assigned. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to