Skip to content
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

Closed
plinski opened this issue Oct 14, 2019 · 4 comments
Closed

Undefined: consts.RequestHeaderName #7641

plinski opened this issue Oct 14, 2019 · 4 comments

Comments

@plinski
Copy link

plinski commented Oct 14, 2019

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.

@poolski
Copy link

poolski commented Oct 14, 2019

✋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 go get -u github.com/hashicorp/vault/api vs go get github.com/hashicorp/vault/api broke my local environment.

@allthingsclowd
Copy link
Contributor

✋ 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$

@mjarmy
Copy link
Contributor

mjarmy commented Oct 14, 2019

Fixed! Sorry about that -- we needed a `go mod vendor'

@mjarmy mjarmy closed this as completed Oct 14, 2019
@dnascimento
Copy link

@mjarmy when will Hashicorp release a new version of the SDK with this issue addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants