main package at $PROJECT/src is ignored #46

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

Projects

None yet

2 participants

@davecheney
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 davecheney added the bug label May 5, 2015
@davecheney
Contributor

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
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
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment