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

main package at $PROJECT/src is ignored #46

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

Comments

Projects
None yet
2 participants
@davecheney
Contributor

davecheney commented May 5, 2015

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

This comment has been minimized.

Contributor

davecheney commented May 12, 2015

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

This comment has been minimized.

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

This comment has been minimized.

Contributor

davecheney commented Oct 18, 2016

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

This comment has been minimized.

Contributor

davecheney commented Oct 18, 2016

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