Page MenuHomePhabricator

Fix an issue where "arc" may fail on startup when trying to read older "default" config
ClosedPublic

Authored by epriestley on Mar 6 2020, 3:22 PM.
Tags
None
Referenced Files
F15413582: D21039.diff
Wed, Mar 19, 7:47 PM
F15369826: D21039.id50111.diff
Wed, Mar 12, 8:17 AM
F15336157: D21039.diff
Sat, Mar 8, 6:18 PM
Unknown Object (File)
Mon, Feb 24, 3:20 PM
Unknown Object (File)
Feb 9 2025, 8:47 AM
Unknown Object (File)
Feb 9 2025, 8:47 AM
Unknown Object (File)
Feb 9 2025, 8:47 AM
Unknown Object (File)
Feb 9 2025, 8:47 AM
Subscribers
None

Details

Summary

See PHI1663. If "phabricator.uri" is not configured, we try to fall back to "default", but doesn't have a modern config specification and fails.

Instead, read "default" as a raw config value to preserve compatible behavior. My intent is to eventually remove it.

Test Plan

In a directory with no "phabricator.uri" config available, ran echo {} | arc call-conduit conduit.ping. After the patch, got a reasonable error instead of a fatal.

In a directory with "default" configured but not "phabricator.uri", ran the same command. After the patch, got a ping.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable