Page MenuHomePhabricator

get-config does not always return default config values
Closed, ResolvedPublic

Description

Currently, I don't have history.immutable overridden, either on a per-repo or per-user basis.

When I run

arc set-config --show

it shows:

history.immutable (bool)

           Example: false
   Current Setting: false

However, when I run:

arc get-config history.immutable

it doesn't return anything at all.

Event Timeline

mattflaschen raised the priority of this task from to Needs Triage.
mattflaschen updated the task description. (Show Details)
mattflaschen added a subscriber: mattflaschen.

bin/config has this problem too (in the opposite direction: database configuration is not shown), although it's slightly more difficult to resolve there because there's a bootstrapping problem. These should both be more clear and verbose than they are, they've outgrown their debugging/support/sanity-check roots.

epriestley triaged this task as Normal priority.May 17 2014, 7:17 PM

mart_ in IRC is hitting an issue where arc is not loading configuration when it seems like it should. Generally, I want to make this config stuff print a preamble explaining exactly where we're looking for configuration files, which ones we found, and which ones we didn't find.

Also, arc set-config --show is a terrible place for this output. It should probably move to arc get-config --verbose to mirror arc linters --verbose.