Hi all,
I am currently using vault v1.9.2 and want to upgrade to v.1.14.0.
However, if I update my go mod with github.com/hashicorp/vault/api v1.14.0, it is failing with the following error:
go: github.com/hashicorp/vault/api@v1.14.0: reading github.com/hashicorp/vault/api/go.mod at revision api/v1.14.0: unknown revision api/v1.14.0
go get is also failing with the same error
go get github.com/hashicorp/vault/api@1.14.0
go: github.com/hashicorp/vault/api@v1.14.0: reading github.com/hashicorp/vault/api/go.mod at revision api/v1.14.0: unknown revision api/v1.14.0
any info on how I can pull latest?
I had observed that vault and /api release tags are different.
vault is at 1.14 while api is still at 1.9.2.
this might be the reason.
maxb
3
You’re making an assumption that the api package follows the same versioning scheme as Vault itself.
It’s not an unreasonable assumption, considering HashiCorp don’t publish a separate changelog. However it isn’t actually true!
api version numbers have no algorithmic relationship to Vault version numbers, and the only way to relate them is to look at the Git commit tree.
Generally though, it suffices just to upgrade to the latest available api version from time to time.
Thanks for the info. @maxb