mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
When `internal/env/env.Get` detects a difference in between already registered descriptions, it panics (good). But the error message doesn't tell you what's the difference and you're left out to put a few prints for yourself in the code to try to understand what's wrong. See also: https://github.com/sourcegraph/sourcegraph/pull/63786 Before: <img width="1109" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/10151/56b2d65c-ef87-4134-bfc0-67248aa48350"> After:  ## Test plan CI + local run ## Changelog - When conflicting env var are detected, print the two to ease debugging. |
||
|---|---|---|
| .. | ||
| baseconfig.go | ||
| BUILD.bazel | ||
| CODENOTIFY | ||
| env_test.go | ||
| env.go | ||