Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep ensure: must provide a lock in order to write out vendor #323

Closed
peterbourgon opened this issue Mar 13, 2017 · 9 comments · Fixed by #325
Closed

dep ensure: must provide a lock in order to write out vendor #323

peterbourgon opened this issue Mar 13, 2017 · 9 comments · Fixed by #325
Labels

Comments

@peterbourgon
Copy link
Contributor

I have a repo with a manifest and lock and as part of my CI run I do a plain dep ensure from the repo root. Worked great until it didn't, change in the last ~36 hours:

$ go get github.com/golang/dep/cmd/dep
$ dep ensure
grouped write of manifest, lock and vendor: must provide a lock in order to write out vendor
@sdboyer
Copy link
Member

sdboyer commented Mar 13, 2017

Huh. Weird. Yeah, that's a bug for sure. I bet we missed a path in #256, and/or in the new test harness, too. ping @carolynvs @tro3 - thoughts? 😄

@carolynvs
Copy link
Collaborator

This is probably related to my PR that was just merged, as it touched the safe writer which is printing that message. Looking now.

@tro3
Copy link
Contributor

tro3 commented Mar 13, 2017 via email

@carolynvs
Copy link
Collaborator

The test was there but I had misunderstood when both lock and newlock should be set in the tests, so it wasn't correctly testing the scenario.

@gregory-m
Copy link
Contributor

gregory-m commented Mar 15, 2017

Any plans on fixing this.
BWT the bug was introduced in e43a3b8.

Also can you please collaborate on you bug fixing policy.

I fully understand its Alpha and I'am using it on my own risk.
But on other hand this bug broke CI for 2 days for all people who volunteered to test dep on their CI environments.

Thanks.

EDIT: In replay to downvote.

I don't blame anyone, and respect everyones effort to solve go dependencies management problem.

I just trying to understand if it was good idea to try dep in one of our internal projects.
And if it wasn't good idea, then I can try it one more time.

@carolynvs
Copy link
Collaborator

The fix is being worked on in this PR: #325.

@sdboyer
Copy link
Member

sdboyer commented Mar 15, 2017

@gregory-m at this point, you absolutely shouldn't be relying on dep for anything in real, production infrastructure. What we're asking people for is to test drive it - attempt initial conversions, build out an alternate pipeline in their CI infrastructure, etc.

While we obviously have no intention of breaking tip, or leaving it that way for any extended period, we also need to not be unduly afraid of doing so. There's still too many open questions.

@gregory-m
Copy link
Contributor

@sdboyer Thanks.

Will commit vendor, and create separate build to continue report bugs.

@sdboyer
Copy link
Member

sdboyer commented Mar 20, 2017

@gregory-m that's the best response i could've hoped for from that - thank you! keeping a build pipeline open on the side is tremendously helpful to our efforts here. 🎉 🎉

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

Successfully merging a pull request may close this issue.

5 participants