lookupDotenv returns a value from the .env file. NOTE: Not using godotenv.Load() since the OpenTelemetry-related env vars clash with `docker compose`.
(key string)
| 832 | // lookupDotenv returns a value from the .env file. |
| 833 | // NOTE: Not using godotenv.Load() since the OpenTelemetry-related env vars clash with `docker compose`. |
| 834 | func lookupDotenv(key string) string { |
| 835 | env, err := godotenv.Read() |
| 836 | if err != nil { |
| 837 | return "" |
| 838 | } |
| 839 | return env[key] |
| 840 | } |
| 841 | |
| 842 | // stateDirectory returns the directory where the devtool's state is stored. |
| 843 | // Deleting this directory will reset the state of the local development environment. |
no outgoing calls
no test coverage detected