-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secrets/vault: stop depending on Vault root module in test #1958
Comments
Yikes. This seems to interfere with work on #886 because I'll need to run the equivalent of |
Yeah, this isn't great. I think we should fix it sooner rather than later, because it feels like a landmine. |
Any ideas for a fix? In a separate experiment it seems that |
My proposed solution is to run Vault from a Docker container like how we're handling other dependencies rather than trying to link it in (i.e. remove the main Vault module dependency). |
There also needs to be some change on the |
Describe the bug
Our integration test spins up a Vault instance by linking in the code and running it in-process AFAICT. Vault recently split their repository into submodules:
github.com/hashicorp/vault
,github.com/hashicorp/vault/api
, andgit.luolix.top/hashicorp/vault/sdk
. However, they have not released a version of thevault
top-level module that excludes theapi
packages. This causes ambiguous import errors during builds.To Reproduce
go mod tidy
ingocloud.dev/
internal/testing/listdeps.sh
Expected behavior
A list of dependencies is printed to stdout.
Actual behavior
The following error message occurs:
Version
gocloud.dev master (a5a281f)
Additional context
We have been near-missing this because up to this point, we haven't imported anything that specified a module requirement on
github.com/hashicorp/vault/api
. Runninggo mod tidy
appears to be grabbing everything from Vault tests, which then includesgit.luolix.top/hashicorp/vault/helper/builtinplugins
, which seems like a big offender of bringing in more stuff.This is a known issue reported (and closed as WAI) upstream: hashicorp/vault#6634
The text was updated successfully, but these errors were encountered: