Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@emidoots
Copy link
Member

@emidoots emidoots commented Mar 3, 2023

The env var aliasing code introduced did not work correctly, and as a result symbols searches broke in the previous version of Sourcegraph:

This updates the code to use env.ChooseFallbackVariableName - the correct way to alias env var names (thanks Erik!) - and should fix the issue.

I've re-reviewed App changes to ensure these were the only two env vars renamed, so we shouldn't get bitten by this anywhere else.

Test plan

Careful code review.

The env var aliasing code introduced did not work correctly, and as a
result symbols searches broke in the previous version of Sourcegraph:

* https://github.com/sourcegraph/sourcegraph/pull/48606
* https://sourcegraph.slack.com/archives/C02E4HE42BX/p1677787957893839

This updates the code to use `env.ChooseFallbackVariableName` - the
correct way to alias env var names (thanks Erik!) - and should fix the
issue.

I've re-reviewed App changes to ensure these were the only two env vars
renamed, so we shouldn't get bitten by this anywhere else.

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool beans, thanks for the prompt fix!

@emidoots emidoots merged commit cc818b5 into main Mar 3, 2023
@emidoots emidoots deleted the sg/symbols-env-var-fix branch March 3, 2023 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants