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

dep hangs when subcommands try to read from stdin #1476

@zkry

Description

@zkry

What version of dep are you using (dep version)?

v0.3.2-163-g5d5088d6

What dep command did you run?

I ran dep init -gopath -v while in a directory only containing the file main.go below.

// main.go
package main

import (
	"fmt"

	. "github.com/test/color"
)

func main() {
	fmt.Println("vim-go")
}

My intention was to add a repo from my own gopath under src/github.com/test/color (for testing purposes). I deleted the .git information in this directory.

What did you expect to see?

I expected this to work: because of the -gopath flag it would just go and get the repo info from the gopath.
If for some reason it didn't do this and tried to get the information from github, I would have expected it to fail.

What did you see instead?

❯ dep init -gopath -v
Getting direct dependencies...
Checked 1 directories for packages.
Found 1 direct dependencies.
Searching GOPATH for projects...

This text came up. I waited a long time for it to do something (10-20 mins) and it was just stuck here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions