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
dep ensure -add command fails due to constraints in terratest #271
Comments
Hi @gwhorleyGH, Hmm, I can't seem to repro the issue. Can you share your That said, I have been running into a few issues starting a project from scratch so this might be related. For reference, here are the steps I took to try to repro the issue:
My versions are:
|
By the way, you shouldn't need to run |
My
|
AFAIK I think it still works even if the That [[constraint]]
name = "github.com/gruntwork-io/terratest"
version = "0.14.4"
[[constraint]]
branch = "release-1.12"
name = "k8s.io/api"
[prune]
go-tests = true
unused-packages = true Can you try the following? I want to rule out environment differences:
If that works, then something must be preventing dep from parsing the dependencies correctly. Can you see if you have any syntax errors by running |
@yorinasub17 Thanks for helping me troubleshoot. I went through the steps you requested until an error occurred at step 3:
Running EDIT I should also mention that I gave up trying |
Makes sense. Huh. I am really stumped in the difference in behavior here. What happens if you just use my |
@yorinasub17 If I run
|
Gah so it's the same issue... Looking around, I found this: golang/dep#484 which looks similar to your issue. In there, they suggest clearing the dep cache. Does |
I see several things inside
So I just cleared out the contents of
|
It has to be something in my environment causing the issue. I just ran |
Thanks for the update! I am sorry we couldn't figure it out in the end, but glad to know you got a workaround working with docker. |
One thing I noticed in one of the comments:
Do you have a |
@brikis98 That's actually coming from the kubernetes packages. I had that too (as well as similar info for godep), but it didn't affect my config. |
Ah, OK then. Back when we used glide, I had issues with |
I am trying to grab dependencies for a test I wrote that uses the terratest library by using
dep
. The project I'm working in has no other Go code, so I randep init
from the root of the project to get things started. After dep created Gopkg* files and vendor directory, I checked out the branch that has my test and then tried to rundep ensure
for all of the modules in my import list minus the golang built-ins:Any attempt at retrieving dependencies via
dep ensure -add
on any of those modules results in various constraint errors, such as:If I try to run
dep ensure -add
on one of the terratest modules, I get a ton of error output about mismatched constraints. I'll provide a gist of the full error output if needed.What am I missing?
The text was updated successfully, but these errors were encountered: