diff --git a/vendor/github.com/99designs/keyring/kwallet.go b/vendor/github.com/99designs/keyring/kwallet.go index be60408aa..02860d084 100644 --- a/vendor/github.com/99designs/keyring/kwallet.go +++ b/vendor/github.com/99designs/keyring/kwallet.go @@ -14,6 +14,12 @@ const ( ) func init() { + // silently fail if dbus isn't available + _, err := dbus.SessionBus() + if err != nil { + return + } + supportedBackends[KWalletBackend] = opener(func(cfg Config) (Keyring, error) { if cfg.ServiceName == "" { cfg.ServiceName = "kdewallet" diff --git a/vendor/github.com/99designs/keyring/libsecret.go b/vendor/github.com/99designs/keyring/libsecret.go index fef959339..ee0d10ad8 100644 --- a/vendor/github.com/99designs/keyring/libsecret.go +++ b/vendor/github.com/99designs/keyring/libsecret.go @@ -6,10 +6,17 @@ import ( "encoding/json" "fmt" + "github.com/godbus/dbus" "github.com/gsterjov/go-libsecret" ) func init() { + // silently fail if dbus isn't available + _, err := dbus.SessionBus() + if err != nil { + return + } + supportedBackends[SecretServiceBackend] = opener(func(cfg Config) (Keyring, error) { if cfg.ServiceName == "" { cfg.ServiceName = "secret-service" diff --git a/vendor/vendor.json b/vendor/vendor.json index 6ed6349a3..a8c461c4f 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -3,10 +3,10 @@ "ignore": "test", "package": [ { - "checksumSHA1": "yPdUwIYrb/mMRha15K2OPS2hcSo=", + "checksumSHA1": "D8hEjr7exRaY14eEFEXCSV6YXao=", "path": "github.com/99designs/keyring", - "revision": "864ec8407057ca036ab7f3cac503aef926fa59eb", - "revisionTime": "2017-11-28T00:42:29Z" + "revision": "5fbd4674c81065bd80b5adfee8a127c5c47e48ce", + "revisionTime": "2017-12-29T03:53:02Z" }, { "checksumSHA1": "KmjnydoAbofMieIWm+it5OWERaM=",