-
Notifications
You must be signed in to change notification settings - Fork 1k
dep ensure does not update package to the revision in Gopkg.lock #865
Comments
Did you specify the |
After pulling in the other directory? No. I don't want to update. I want the revisions in Gopkg.lock. |
Can you explain what you mean by "pulled in another directory that already had an older package in vendor"? |
Before I ran Then I ran |
Ah okay. So for the workflow that you are using now, I recommend first deleting vendor in Directory B, then running dep ensure. We have #121 open to track adding vendor verification. |
It also sounds like |
I tried that branch, and not only does |
What version of Go (
go version
) anddep
(git describe --tags
) are you using?go1.8, dep 6c5ebb9
What
dep
command did you run?I updated my package on github. Ran
dep ensure -update
to update it in a project. The new revision was written to Gopkg.lock. I committed the file and pushed (vendor is not commited), pulled in another directory that already had an older package in vendor, and ran dep ensure -v there.What did you expect to see?
I expected the package in vendor to be updated to the revision that is in Gopkg.lock
What did you see instead?
The package in vendor was not updated.
Gopk.toml is empty. Gopk.lock:
The text was updated successfully, but these errors were encountered: