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

go install generates target in src instead of bin directory in a special case #3772

Closed
gopherbot opened this issue Jun 23, 2012 · 2 comments
Closed

Comments

@gopherbot
Copy link

by xapwing:

go version = 1.0.2

windows 7

gopath=c:\dir1;c:\dir2

directory structure:
c:\dir1\src\
           hello\
               hello.go
c:\dir1\bin
c:\dir2\src\
           hello\
               hello.go
c:\dir2\bin

Trigger of the problem:
I run "go install" in either of the "hello" directories

What is the expected output?
  a generated hello.exe in the "bin" directory related to the base dir where the src dir is in

What do you see instead?
   hello.exe is generated in the same "hello" directory as the source hello.go is

Conclusion so far:
   if the same project name occurs in more than one subpaths of a gopath, go install will behave differently and put the .exe file not in the bin but in the src directory

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


Which operating system are you using?


Which version are you using?  (run 'go version')


Please provide any additional information below.
@gopherbot
Copy link
Author

Comment 1 by xapwing:

Probably related to issue #3652

@minux
Copy link
Member

minux commented Jun 23, 2012

Comment 2:

yes, this issue is part of issue #3652, and the case in comment #4 of issue #3652 is
exactly this issue.

Status changed to Duplicate.

Merged into issue #3652.

@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

2 participants