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 build' panics when a dependency is not found #2813

Closed
gopherbot opened this issue Jan 30, 2012 · 4 comments
Closed

cmd/go: 'go build' panics when a dependency is not found #2813

gopherbot opened this issue Jan 30, 2012 · 4 comments

Comments

@gopherbot
Copy link

by mklencke:

What steps will reproduce the problem?
1. Try to 'go build' or 'go run' code that imports a package that does not exist, for
example the old "rand" package

What is the expected output?

Successful output of 'go run'.

What do you see instead?

A panic trace

Which compiler are you using (5g, 6g, 8g, gccgo)?

8g

Which operating system are you using?

Linux

Which revision are you using?  (hg identify)

54016655b9d7+ tip

Please provide any additional information below.

Simple fix is attached

Attachments:

  1. buildpanic.diff (351 bytes)
@gopherbot
Copy link
Author

Comment 1 by mklencke:

The expected output should of course be that a package could not be found.

@kylelemons
Copy link
Contributor

Comment 2:

I hit this too.  CL mailed.

@kylelemons
Copy link
Contributor

Comment 3:

I believe this is a duplicate of issue #2865.
http://golang.org/cl/5624052/

@robpike
Copy link
Contributor

robpike commented Feb 6, 2012

Comment 5:

Status changed to Duplicate.

Merged into issue #2865.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants