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

cmd/dep: make out-of-sync ensure less strict #1225

Merged
merged 2 commits into from
Oct 2, 2017

Conversation

miguel250
Copy link
Contributor

What does this do / why do we need it?

This change makes ensure less strict when out-of-sync allowing execution to continue. Removed mention of Run "dep ensure" to resync them first before running "dep ensure -update" since this is not necessary anymore.

Do you need help or clarification on anything?

Please let know if ctx.Err.Printf should be use in this case or ctx.Out.Printf is fine.

Which issue(s) does this PR fix?

fixes #1126

@sdboyer
Copy link
Member

sdboyer commented Oct 1, 2017

@ibrasho you wanna take review on this one?

@@ -479,7 +477,7 @@ func (cmd *ensureCommand) runAdd(ctx *dep.Ctx, args []string, p *dep.Project, sm

var wg sync.WaitGroup

fmt.Println("Fetching sources...")
ctx.Out.Println("Fetching sources...")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@ibrasho ibrasho self-assigned this Oct 1, 2017
Copy link
Collaborator

@ibrasho ibrasho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ibrasho ibrasho merged commit 4cb413e into golang:master Oct 2, 2017
@miguel250 miguel250 deleted the patch-1 branch October 2, 2017 23:33
zknill pushed a commit to zknill/dep that referenced this pull request Oct 6, 2017
* cmd/dep: make out-of-sync ensure less strict

* cmd/dep: fix broken integration test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow dep ensure -add and -update when lock is out-of-sync
4 participants