Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: no submodule mapping found #69

Closed
mpictor opened this issue Jun 27, 2016 · 4 comments
Closed

fatal: no submodule mapping found #69

mpictor opened this issue Jun 27, 2016 · 4 comments

Comments

@mpictor
Copy link

mpictor commented Jun 27, 2016

I'm trying to use your keyring module; I'm importing "github.com/99designs/aws-vault/keyring". However, I get an error when I attempt to install my code's dependencies (which include aws-vault).

$ go get .

# cd /home/mark/go/src/github.com/99designs/aws-vault; git submodule update --init --recursive
fatal: no submodule mapping found in .gitmodules for path 'vendor/github.com/alecthomas/units'
package github.com/99designs/aws-vault/keyring: exit status 128

I noticed that the most recent commit, 09f0ba74, was "Update Vendors". Thinking this might be the issue, I tried checking out the previous commit and re-running the submodule update command. This resulted in the same error.

@lox lox closed this as completed in fb4b066 Jul 3, 2016
@lox
Copy link
Collaborator

lox commented Jul 3, 2016

Let me know if this resolves the issue for you, also how you go with the keyring library. I was in the process of moving over the good parts of it to keybase/go-keychain#4 (comment)

If you can, I'd suggest using https://github.com/keybase/go-keychain instead. See #58.

@mpictor
Copy link
Author

mpictor commented Jul 20, 2016

Thanks, that fixes the git error.

I'm using keyring because it supports kwallet; it looks like go-keychain doesn't yet support any linux mechanism.

Assuming you add kwallet support to go-keychain, the following may be helpful to you:

  • support kde5 (I'm sure this will break kde4, so a complete solution would require additional logic)
--- a/keyring/kwallet.go
+++ b/keyring/kwallet.go
 const (
-       DBUS_SERVICE_NAME = "org.kde.kwalletd"
-       DBUS_PATH = "/modules/kwalletd"
+       DBUS_SERVICE_NAME = "org.kde.kwalletd5"
+       DBUS_PATH         = "/modules/kwalletd5"
        APPID = "aws-vault"
        FOLDER = "aws-vault"
 )
  • allow overriding the appid/folder
--- a/keyring/kwallet.go
+++ b/keyring/kwallet.go
 const (
        DBUS_SERVICE_NAME = "org.kde.kwalletd5"
        DBUS_PATH         = "/modules/kwalletd5"
-       APPID = "aws-vault"
-       FOLDER = "aws-vault"
 )
+
+var APPID = "aws-vault"
+var FOLDER = "aws-vault"

@lox
Copy link
Collaborator

lox commented Jul 24, 2016

Thanks @mpictor, go-keychain is purely OSX Keychain bindings, it's not meant to be an abstraction layer.

@lox
Copy link
Collaborator

lox commented Jul 24, 2016

I've added your feedback to #23 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants