immutability-io / vault-ethereum

A plugin that turns Vault into an Ethereum wallet.
244 stars 66 forks source link

Unable to build plugin #49

Closed smartaquarius10 closed 5 years ago

smartaquarius10 commented 5 years ago

I am trying to build plugin on windows machine. But facing certain errors. Can anyone share the compiled exe of this plugin.

nicolas-law commented 5 years ago

Could you provide some logs ? What problems did you encounter ?

cypherhat commented 5 years ago

Have you tried https://github.com/karalabe/xgo?

smartaquarius10 commented 5 years ago

This is the error with Golang

github.com/hashicorp/vault/physical C:\Users\xxxxxxx\go\src\github.com\hashicorp\vault\physical\testing.go:12: t.Helper undefined (type testing.TB has no field or method Helper) C:\Users\xxxxxxx\go\src\github.com\hashicorp\vault\physical\testing.go:235: t.Helper undefined (type testing.TB has no field or method Helper) C:\Users\xxxxxxx\go\src\github.com\hashicorp\vault\physical\testing.go:292: t.Helper undefined (type testing.TB has no field or method Helper) C:\Users\xxxxxxx\go\src\github.com\hashicorp\vault\physical\testing.go:371: t.Helper undefined (type testing.TB has no field or method Helper) C:\Users\xxxxxxx\go\src\github.com\hashicorp\vault\physical\testing.go:426: t.Helper undefined (type testing.TB has no field or method Helper) github.com/pborman/uuid C:\Users\xxxxxxx\go\src\github.com\pborman\uuid\time.go:15: syntax error: unexpected = in type declaration github.com/hashicorp/vault/vendor/golang.org/x/net/http2 C:\Users\xxxxxxx\go\src\github.com\hashicorp\vault\vendor\golang.org\x\net\http2\server.go:220: s.RegisterOnShutdown undefined (type *http.Server has no field or method RegisterOnShutdown)

This is the error with xgo

2018/11/29 03:02:30 Failed to check docker installation: exec: "docker": executable file not found in %PATH%.

nicolas-law commented 5 years ago

You have to install Docker in order to use xgo. You should try vault and the plugin on a UNIX container with Docker (IMO).

smartaquarius10 commented 5 years ago

I have only company laptop and do not have unix environment available. Can you please build it and provide us the link to download it or upload it here only.

Thank you

smartaquarius10 commented 5 years ago

I am somehow able to build this plugin. But when trying to add and enable the plugin getting this error:

could not set plugin, plugin directory is not configured

cypherhat commented 5 years ago

Vault plugins are a bit tricky. You can see an example of how I configure this plugin for MacOS/Linux here.

There is also some documentation on Vault plugins here

smartaquarius10 commented 5 years ago

Issue resolved. I was trying to push the plugin through stand by vault. We have to perform these steps through vault leader.