Skip to content

dedicated keyring problem when GNUPGHOME is already set #171

@sample-usr

Description

@sample-usr

Hi,
I was trying to use the dedicated openPGP keyring to import the release team's keys but ran into a problem. I'm mostly following the XDG config spec (not important), so I already have the GNUPGHOME variable set to ~/.config/gnupg.

During the installation (as followed on the README) we set it to a different location depending on whether you are using brew or not. Till now it's fine but once it's done and the next time I try to install node it still gives me the error about not importing the release team's keys. That is expected though because the next time I launch my terminal GNUPGHOME is set back to ~/.config/gnupg which doesn't have the keys.

At the moment I can solve this by running this just before installing nodejs

export GNUPGHOME="/usr/local/opt/asdf/keyrings/nodejs"

Is there a better way of doing this?

P.S. I'm not sure but I think the README instructions might not be correct regarding the path of this variable as they specify

export GNUPGHOME="bash /usr/local/opt/asdf/keyrings/nodejs"

Not sure if that bash is supposed to be.

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