NeoHsu / asdf-1password-cli

1password-cli plugin for the asdf version manager.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Op is in the "wrong" path

xocasdashdash opened this issue · comments

Describe the bug
op binary needs to be in /usr/loca/bin/op for the integration with 1password app to work
Steps to reproduce
install and try to read a value
Expected behavior
Maybe it should work. I honestly feel that some docs are what's needed.

Running on Ubuntu 22.04.2 LTS with op 2.19.0-beta.01 and 1Password for Linux 8.10.7 (81007041) when Connect with 1Password CLI is enabled in Settings/Developer the following is fixing the integration:

sudo chgrp onepassword-cli $(asdf which op)
sudo chmod g+s $(asdf which op)

See https://developer.1password.com/docs/cli/app-integration#turn-on-the-app-integration-and-sign-in-to-your-account


I believe this could be fixed in the install script.

@xocasdashdash after thinking about it it's likely only needed on Linux

I'm not sure about portability, but something like this could potentially help the users:
farkasmate@aa4d62c

Yeah, my issue was with the Mac app. As the allowed paths are embedded into the app itself

commented

I also experienced this issue on Mac. I had to switch to brew install --cask 1password/tap/1password-cli and removing the asdf shim for it to work.

Are any of you able to install version 2.21.0 in macos?