Skip to content

Bug: default config directory location in macOS #537

@anuarkaliyev23

Description

@anuarkaliyev23

Default config directory in MacOS seems to be ~/Library/Application Support/usql, not ~/.config/usql as stated in README.md.
Trying to usql <named_connection> prints Error: error: invalid database scheme however works if explicitly configure with usql --config $HOME/usql/config.yaml -x <named_connection>
If I copy config to ~/Library/Application Support/usql it seems to be working as intended without explicitly setting configuration file.

Is it the intended behavior?
Since I've configured $XDG_CONFIG_HOME shouldn't it take precedence? If not, I think there should be a fix in a documentation since it's only can be seen once you inspect the code which I inspected briefly and may be incorrect, please correct me if I understand something wrongly

MacOS Version: Sonoma 14.1.2 (23B92)
Mac M1
installed via brew
usql version: usql 0.19.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions