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
Unable to import api / sdk go modules #234
Comments
To ensure this is a cache problem, you can disable proxy by updating |
@ollevche yes, sadly this is a cache issue. This is why I want @naphelps to tag the next alpha as above the past releases. When forking, all tags were pushed over and subsequently tagged prior to removal, which has caused issues as we've not yet released. I think perhaps you can do what I did in https://github.com/cipherboy/devbao and pin to a hash in the interim. Strictly, I think we'd need to retract all past tags as well? |
Thanks for the reply @cipherboy! Bypassing the go proxy worked for me, but I believe CI could fail later: Ideally, you would want to retract older versions, yes. But I think it's fine to simply publish a new one. BTW when do you plan to release? I'm working on OpenTofu <> OpenBao integration (opentofu/opentofu#1174) and this issue could affect our build process so that's why I'm curious. |
Please see #231 (comment) about the release. |
@nerijus thanks! |
@cipherboy I was going to tag the release |
@naphelps 2>1.14, so that works for me! |
@ollevche I have hacked together a stop gap for today. I retagged most of the modules in OpenBao so you should be able to pull our changes. Most modules in openbao are now tagged either api: going forward we will likely have to go through and increment the major versions of the modules (v0 => v2, v1 => v2, and v2 => v3) to reset the version history and completely remove the prior tags. |
@naphelps got you, thanks for the update! |
Hey there!
Describe the bug
Running
go get github.com/openbao/openbao/api
results in the following error:To Reproduce
Steps to reproduce the behavior:
go mod init example.test
go get github.com/openbao/openbao/api
Expected behavior
OpenBao API go module has been added to project's go.mod as a dependency for further use.
Environment:
Clean go module.
Additional context
It's possible that Go module proxy server cached the old version of OpenBao API's go.mod (with
github.com/hashicorp/vault/api
specified). It can be resolved by publishing a new go mod version.The text was updated successfully, but these errors were encountered: