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 -o /dev/null destroys /dev/null #5998

Closed
kortschak opened this issue Jul 31, 2013 · 4 comments
Closed

cmd/go: go build -o /dev/null destroys /dev/null #5998

kortschak opened this issue Jul 31, 2013 · 4 comments
Milestone

Comments

@kortschak
Copy link
Contributor

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. As root run go build -o /dev/null $GOROOT/doc/codewalk/urlpoll.go
2. ls -l /dev/null

What is the expected output?
crw-rw-rw- 1 root root 1, 3 Jul 31 16:03 /dev/null

What do you see instead?
-rwxr-xr-x 1 root root 6101488 Jul 31 16:09 /dev/null

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

Which operating system are you using?
Linux

Which version are you using?  (run 'go version')
go version devel +cd0bae7395e8 Wed Jul 31 15:09:13 2013 +1000 linux/amd64
@remyoudompheng
Copy link
Contributor

Comment 1:

I think the command is working as intended. Just like 'install myfile /dev/null' would
have the same effect.
You should arrange for that command to not be called.

@kortschak
Copy link
Contributor Author

Comment 2:

That command is part of the all.bash test suite. So while the issue may be misnamed
(change to "doc: codewalk test invokes go build with -o /dev/null"), it still exists.
The file in question is $GOROOT/doc/codewalk/run from this CL:
http://code.google.com/p/go/source/detail?r=620fea

@dsymonds
Copy link
Contributor

Comment 3:

Labels changed: added priority-soon, go1.2, size-s, removed priority-triage, go1.2maybe.

@robpike
Copy link
Contributor

robpike commented Aug 1, 2013

Comment 4:

This issue was closed by revision 64cb2cf.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2 label Apr 14, 2015
@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

6 participants