Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

main package at $PROJECT/src is ignored #46

Closed
davecheney opened this issue May 5, 2015 · 4 comments
Closed

main package at $PROJECT/src is ignored #46

davecheney opened this issue May 5, 2015 · 4 comments

Comments

@davecheney
Copy link
Contributor

Consider this layout

$PROJECT
    src/
        main.go

main.go will be ignored. Similar to #45, this is a bug, but probably not helpful to the user as the command would be installed as $PROJECT/bin/src

@davecheney
Copy link
Contributor Author

As part of discussing #48 it was decided that source code at the root of $PROJECT/src was a mistake and the small convenience would only confuse when someone went to consume that package.

To close this issue, gb should be taught to reject source at the top level of $PROJECT/src/

cc @wkennedy

@ajpen
Copy link

ajpen commented Oct 18, 2016

So, what this is saying is any code in $PROJECT/src will be ignored? I have main.go there as I would in a typical go project and its not compiled. My other packages are compiled. Do I need main in a different directory?

@davecheney
Copy link
Contributor Author

Any package at $PROJECT/src is ignored because it would have an invalid package import path.

On 18 Oct. 2016, at 18:35, Anfernee notifications@github.com wrote:

So, what this is saying is any code in $PROJECT/src will be ignored? I have main.go there as I would in a typical go project and its not compiled. My other packages are compiled. Do I need main in a different directory?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

@davecheney
Copy link
Contributor Author

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