Closed innerdev closed 1 year ago
Hi @innerdev , I believe you will need go 1.20 in order to compile vault.
@innerdev @divyaac : I face the exact same issue , even though i am on go 1.21. Is there a solution ?
I tried this as well, first on my MBP:
And next on my linux box:
It does indeed fail with 1.18.1. The file located here https://github.com/hashicorp/vault/blob/main/.go-version specifies the minimum Go version that should be used to compile Vault. That is referenced as part of the Makefile here https://github.com/hashicorp/vault/blob/main/Makefile#L165 where a shell script checks to make sure you're using the minimum required Go version when building Vault.
make bootstrap
, for reasons I'm not entirely clear about, does not perform this minimum check, but I can ensure that's the case.
@rraj-splunk I'm not sure why you're experiencing problems if you're using Go 1.21. It works for me on both macOS and Linux using Go 1.21. Can you post more details on what errors out?
https://github.com/hashicorp/vault/pull/23685 should help avoid problems like this going forward.
I got the following error when compiling:
Go version (just installed):
PATH:
GOPATH:
System:
Any ideas, guys?