Skip to content

Search $HOME/.config/pbcli/config on macOS #22

Description

@Mydayyy

Bug Report: PBCLI_CONFIG_PATH Not Searching $HOME/.config/pbcli/config on macOS

Description:
On macOS, pbcli does not search for configuration files in $HOME/.config/pbcli/config, which is a common location for storing configuration files. Instead, it only checks:

  • /Users/<user>/Library/Application Support/eu.mydayyy.pbcli/config
  • /etc/pbcli/config

This results in pbcli failing to find the expected configuration file if it is placed in $HOME/.config/pbcli/config.

Steps to Reproduce:

  1. Place a config file at $HOME/.config/pbcli/config.
  2. Run pbcli with --debug to observe where it searches for configuration files.
  3. Notice that $HOME/.config/pbcli/config is not included in the search paths.

Observed Output:

❯ echo test | ./target/release/pbcli --debug
DEBUG pbcli::config: PBCLI_CONFIG_PATH not set
DEBUG pbcli::config: looking for config at /Users/<user>/Library/Application Support/eu.mydayyy.pbcli/config
DEBUG pbcli::config: looking for config at /etc/pbcli/config
DEBUG pbcli::config: no config found
error: The following required arguments were not provided:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions