defaultKeyring returns the expanded path to the default keyring.
()
| 93 | |
| 94 | // defaultKeyring returns the expanded path to the default keyring. |
| 95 | func defaultKeyring() string { |
| 96 | if v, ok := os.LookupEnv("GNUPGHOME"); ok { |
| 97 | return filepath.Join(v, "pubring.gpg") |
| 98 | } |
| 99 | return filepath.Join(homedir.HomeDir(), ".gnupg", "pubring.gpg") |
| 100 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…