-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
go get vault@v1.9.1 fails to compile properly due to known bugs in hashicorp/go-discover #13386
Comments
We don't support building Vault from source or using it as a dependency, as that can often run into conflicts when importing both vault, along with the |
@hsimon-hashicorp Then please expose the We have hundreds of tests that is using vault.TestCluster to launch an in-memory vault cluster and run tests against it. And it was working before properly so I understand that "suddenly" it's not supported, but we need an alternative... Especially since all examples you'll find on the internet about vault integration testing starts with importing
I neither can't use client, closer := api.testVaultServer(t)
defer closer() as the api/testvaultServer is not exported.. so it's a bit hard to do any tests without really importing vault itself And some official statement from a few years ago: |
@hsimon-hashicorp This has come up repeatedly on the issue tracker over the past few years... there is no public API for Can you please consider creating / keep open a ticket tracking eventually adding a public API/SDK for |
@jeffwidman and @woohgit - thank you both for sharing your thoughts and needs around this functionality. We've been having discussions internally about how we could try to tackle this issue. Our concern is around a level of complexity and ongoing support, primarily, and there's a worry about how to implement this sort of request in a robust and stable way. I know this is a common pain point, so while I can't make any promises about whether or when this might be implemented, please know that I'll be advocating for this as best I can. Thank you both, again, for your time and your patience. :) |
Even if the eventual answer is "we aren't sure if we'll do this", having a single ticket would keep conversations centralized and give us a single point to subscribe/follow for the current thinking... vs today it's scattered across multiple closed tickets, so every time it comes up, it's a rehash of the previous conversation... |
I guess you should also close hashicorp/go-discover#183 - right @hsimon-hashicorp ? |
Hello, broadly want to echo @jeffwidman sentiment, and if thats too much, can we please have a statement in README saying "you can't have Vault unit tests", don't import "vault/vault" because it will break. You gain nothing by having users find out the hard way the tests they wrote will constantly break and will become unfixable. Thank you. |
This is not supported and breaks every patch version update: hashicorp/vault#13386
This is not supported and breaks every patch version update: hashicorp/vault#13386
see:
It's kind of impossible to use the golang vault libs for a long time as they're broken after every release.
Can someone have a look and finally fix it? How come that it even properly compiles for the release...
The text was updated successfully, but these errors were encountered: