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: missing .exe suffix on windows #3190

Closed
tjyang opened this issue Mar 5, 2012 · 6 comments
Closed

cmd/go: missing .exe suffix on windows #3190

tjyang opened this issue Mar 5, 2012 · 6 comments
Milestone

Comments

@tjyang
Copy link

tjyang commented Mar 5, 2012

What steps will reproduce the problem?
1.  go build -x helloworld.go
2.  "helloworld" got generated.


What is the expected output?

helloworld.exe 

What do you see instead?
helloworld

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


Which operating system are you using?

win 7 

Which revision are you using?  (hg identify)

C:\goweekly>hg id
f4470a54e6db weekly/weekly.2012-03-04

C:\goweekly>

Please provide any additional information below.
@rsc
Copy link
Contributor

rsc commented Mar 5, 2012

Comment 1:

Labels changed: added priority-go1, go1-must, removed priority-triage.

Owner changed to builder@golang.org.

Status changed to Accepted.

@minux
Copy link
Member

minux commented Mar 5, 2012

Comment 2:

Owner changed to @minux.

Status changed to Started.

@minux
Copy link
Member

minux commented Mar 7, 2012

Comment 3:

This issue was closed by revision 6a42616.

Status changed to Fixed.

@ajstarks
Copy link
Contributor

ajstarks commented Mar 9, 2012

Comment 4:

Be sure to update misc/goplay because it adds .exe if runtime.GOOS == "windows".  With
this change, that is no longer needed.

@minux
Copy link
Member

minux commented Mar 9, 2012

Comment 5:

if you provide -o option to go build, it will do what you want, no more and no less.
(if you insist on 'go build -o hello hello.go' on Windows, it will not try to
stop/correct you.)
And misc/goplay is providing -o option to go build, so it has to append ".exe" if
runtime.GOOS == "windows".

@ajstarks
Copy link
Contributor

ajstarks commented Mar 9, 2012

Comment 6:

I'm suggesting simplifying the command remove the -o, and thus the need for the special
case.

@rsc rsc added this to the Go1 milestone Apr 10, 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

5 participants