Separate Golang API

Currently Go’s Vault api lives in a github.com/hashicorp/vault/api .
Therefore to build simple program that uses Vault 74M should be downloaded.
But api depends only github.com/hashicorp/vault/sdk/helpers/: jsonutil, parseutil, consts and hclutil, .

Our developer choosed to reimplement api in internal package only to not download whole github.com/hashicorp/vault/ and numerous dependencies transitively required through sdk on application build.

Isn’t it possible to separate api into distinct github package and include/copy those small dependencies into?

1 Like