cli: COCKROACH_URL env var is broken #40747
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-2-temp-unavailability
Temp crashes or other availability problems. Can be worked around or resolved by restarting.
Describe the problem
The
COCKROACH_URL
environment variable is supposed to be equivalent to the--url
flag, but using it causes a panic.To Reproduce
cockroach sql --url
works:cockroach sql
with aCOCKROACH_URL
env var panics:Expected behavior
The env var should work in the same way as the command-line flag.
Environment:
cockroach sql
Additional context
I think we should be encouraging the use of
COCKROACH_URL
in documentation, but it has to work first.The text was updated successfully, but these errors were encountered: