Skip to content
This repository has been archived by the owner. 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
Labels

Comments

@davecheney
Copy link
Contributor

@davecheney 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
Copy link
Contributor Author

@davecheney 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
Copy link

@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
Copy link
Contributor Author

@davecheney 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants