-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Undefined: consts.RequestHeaderName #7641
Comments
✋Same thing happening here. It looks like something broke in a recent release, since there were no issues a couple of weeks ago when pulling the same code. Running |
✋ Same error here on the Travis-CI platform with previously working deployments - ...
github.com/hashicorp/vault/api
# github.com/hashicorp/vault/api
../../hashicorp/vault/api/client.go:436:17: undefined: consts.RequestHeaderName
The command "eval go get -v -t ./... " failed. Retrying, 2 of 3. I noticed that this header was added in this PR - #7627 On my mac when I enable go modules it appears to download correctly? I tried this on Travis-CI with no joy. vagrant@godev01:/vagrant$ clear
vagrant@godev01:/vagrant$ export GO111MODULE=off
vagrant@godev01:/vagrant$ go get github.com/hashicorp/vault/api
# github.com/hashicorp/vault/api
/home/vagrant/go/src/github.com/hashicorp/vault/api/client.go:436:17: undefined: consts.RequestHeaderName
vagrant@godev01:/vagrant$ export GO111MODULE=on
vagrant@godev01:/vagrant$ go get github.com/hashicorp/vault/api
vagrant@godev01:/vagrant$ |
Fixed! Sorry about that -- we needed a `go mod vendor' |
@mjarmy when will Hashicorp release a new version of the SDK with this issue addressed? |
Describe the bug
I get the following error when I try to use
"github.com/hashicorp/vault/api"
in my project:# github.com/hashicorp/vault/api ../../github.com/hashicorp/vault/api/client.go:436:17: undefined: consts.RequestHeaderName
.I can see that the client.go file was changed two days ago. It used to work last Friday.
To Reproduce
Import
"github.com/hashicorp/vault/api"
to your project.The text was updated successfully, but these errors were encountered: