Getting "Unable to determine location of config directory." on signIn

mattkiazyk
mattkiazyk
Community Member

We use have an github action that uses the CLI to get username/passwords/etc in the workflow.

Nothing has changed on our end over the last several months, and lately we've gotten a Unable to determine location of config directory." on a signin cli call, both on macos-latest and ubuntu-latest environments on Github

https://github.com/RobotsAndPencils/1password-action/actions/runs/742515668

I know this isn't your environment, but could you provide any information on what Unable to determine location of config directory is missing? Again this was working, but the only thing different would be the updates to Github's environments.

Thanks

-Matt


1Password Version: 1.8.0
Extension Version: Not Provided
OS Version: Github
Sync Type: Not Provided

Comments

  • ag_yaron
    ag_yaron
    1Password Alumni

    Hey @mattkiazyk ,

    This error sounds like the op command is unable to locate the configuration files of the CLI.

    The last update of the CLI came out in October 2020 and it changed how the CLI behaves with its config directory: https://app-updates.agilebits.com/product_history/CLI#v1080001

    The tool now follows the XDG standard more closely and stores your configuration files in "${XDG_CONFIG_HOME}/op/" (usually "~/.config/op/").

    Your configuration in "~/.op/" will still work or you can move it to the new location. If you want to use a custom location, use the "--config" option with each command.

    So this might help you guys in configuring the location of its configuration files:

    Use a custom configuration location with the "--config" option.

This discussion has been closed.