Vault
Build Vault from code
Clone the official Vault repo and build a Vault binary from source code for your system.
- Create a - hashicorpsource directory under your- GOPATHand change to the new directory:- $ mkdir -p ${GOPATH}/src/hashicorp && cd $_
- Clone the Vault repository from GitHub: - $ git clone https://github.com/hashicorp/vault.git
- Change to the cloned Vault directory: - $ cd vault
- Bootstrap the Go project to download and compile the libraries and tools needed to compile Vault: - $ make bootstrap
- Use - maketo build Vault for your current system:- $ make dev- You can copy the compiled binary from - ${GOPATH}/src/hashicorp/vault/bin/.