Skip to content
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

cmd/go: go install failed #25642

Closed
tharun-d opened this issue May 30, 2018 · 8 comments
Closed

cmd/go: go install failed #25642

tharun-d opened this issue May 30, 2018 · 8 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@tharun-d
Copy link

tharun-d commented May 30, 2018

What version of Go are you using (go version)?

1.10.2

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

windows 7 enterprise with service pack 1 architecture:AMD Athlon (tm) x2 B24 processor

What did you do?

I downloaded .msi file and installed(didn't change any path) i created hello.go file using vscode and recommended me to install the things required when i did that i got this error

What did you see instead?

> Installing github.com/sqs/goreturns FAILED

1 tools failed to install.

goreturns:
Error: Command failed: C:\Go\bin\go.exe get -u -v github.com/sqs/goreturns
# cd C:\Users\hpadmin\go\src\github.com\sqs\goreturns; git config remote.origin.url
package github.com/sqs/goreturns: remote origin not found
# cd C:\Users\hpadmin\go\src\github.com\sqs\goreturns; git config remote.origin.url
package github.com/sqs/goreturns: remote origin not found

Only go returns is failed some other recommend tools got installed successfully

Installing github.com/acroca/go-symbols SUCCEEDED
Installing golang.org/x/tools/cmd/guru SUCCEEDED
Installing golang.org/x/tools/cmd/gorename SUCCEEDED
Installing github.com/fatih/gomodifytags SUCCEEDED

and many more

I did this

_c:\Go>go get -v -u
package _/c_/Go: unrecognized import path "_/c_/Go" (import path does not begin
with hostname)_
@ianlancetaylor ianlancetaylor changed the title go return installation failed cmd/go: go install failed May 30, 2018
@ianlancetaylor
Copy link
Contributor

go get takes an argument. What is the output of get -u -v -x github.com/sqs/goreturns?

@ianlancetaylor ianlancetaylor added this to the Go1.11 milestone May 30, 2018
@ianlancetaylor ianlancetaylor added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels May 30, 2018
@tharun-d
Copy link
Author

tharun-d commented May 31, 2018

C:\Users\hpadmin>**go get -u -v -x github.com/sqs/goreturns**
cd C:\Users\hpadmin\go\src\github.com\sqs\goreturns
git config remote.origin.url
cd C:\Users\hpadmin\go\src\github.com\sqs\goreturns; git config remote.origin.
url
# package github.com/sqs/goreturns: remote origin not found

@davecheney
Copy link
Contributor

davecheney commented May 31, 2018 via email

@tharun-d
Copy link
Author

tharun-d commented May 31, 2018

i did that
In middle of output i got this below error but go returns got installed i checked it and ran sample programm

Fetching https://golang.org/x/tools/go/ast/astutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/ast/astutil?go-get=1: dial
 tcp 172.217.10.81:443: connectex: A connection attempt failed because the conne
cted party did not properly respond after a period of time, or established conne
ction failed because connected host has failed to respond.
cd C:\Users\hpadmin\go\src\golang.org\x\tools
git config remote.origin.url
Fetching https://golang.org/x/tools/internal/fastwalk?go-get=1
https fetch failed: Get https://golang.org/x/tools/internal/fastwalk?go-get=1: d
ial tcp 172.217.10.81:443: connectex: A connection attempt failed because the co
nnected party did not properly respond after a period of time, or established co
nnection failed because connected host has failed to respond.
WORK=C:\Users\hpadmin\AppData\Local\Temp\go-build267458702

@davecheney
Copy link
Contributor

Fundamentally go get is just a wrapper around git, and it looks like the git commands are failing.

I don't think that we can help you, your problems look like general networking or anti virus related -- something is either blocking or delaying your traffic.

@EvgenySerg
Copy link

EvgenySerg commented Jun 3, 2018

I have the same problem.
There is noantivirus software on my pc. Windows 10. Go version 1.10.2.
The message i've got:

dlv:
Error: Command failed: C:\Go\bin\go.exe get -u -v github.com/derekparker/delve/cmd/dlv
github.com/derekparker/delve (download)
# cd C:\Users\fatboa\go\src\github.com\derekparker\delve; git pull --ff-only
fatal: Not a git repository (or any of the parent directories): .git
package github.com/derekparker/delve/cmd/dlv: exit status 128
github.com/derekparker/delve (download)
# cd C:\Users\fatboa\go\src\github.com\derekparker\delve; git pull --ff-only
fatal: Not a git repository (or any of the parent directories): .git
package github.com/derekparker/delve/cmd/dlv: exit status 128

C:\Users\xxx>go.exe get -u -v github.com/sqs/goreturns
# cd C:\Users\xxx\go\src\github.com\sqs\goreturns; git config remote.origin.url
package github.com/sqs/goreturns: remote origin not found

@agnivade
Copy link
Contributor

agnivade commented Jun 4, 2018

Your issue is different. OP's issue seems to be networking related.

connectex: A connection attempt failed because the conne cted party did not properly respond after a period of time, or established conne ction failed because connected host has failed to respond. - clearly shows that the connection has failed to establish.

Your issue seems to be due to a corrupted GOPATH or possibly something git related. Is this a new problem that you saw after upgrading to 1.10.2 ? Or did you just setup Go from scratch and saw this ? Are you able to clone the git repositories manually using raw git commands ?

@agnivade agnivade added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Jun 16, 2018
@ianlancetaylor ianlancetaylor modified the milestones: Go1.11, Go1.12 Jul 6, 2018
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

6 participants