[go-nuts] Re: File organization in a github-ed Go project

2017-03-02 Thread ojucie
That is by design. All import paths should be complete, absolute paths, and that is enforced as much as possible. When somebody moves or copy a file to another directory structure, the program behaviour is preserved, even if by chance there is a similarly named package nearby. If "../serial" w

[go-nuts] Re: File organization in a github-ed Go project

2017-02-28 Thread Diego Medina
Note that if you write a project that other users would use, you will force them to update their $GOPATH to make your app work. Which I think it a lot worse than making people who fork your project update the import path And like someone else said, if I need to fork a project, I most likely alre

[go-nuts] Re: File organization in a github-ed Go project

2017-02-28 Thread Basile Starynkevitch
On Monday, February 27, 2017 at 3:18:18 PM UTC+1, Basile Starynkevitch wrote: > > > > On Monday, February 27, 2017 at 3:02:24 PM UTC+1, C Banning wrote: >> >> Try organizing your project as: >> >> monimelt >> >> src >> >> cmd (or "monimelt", if there's just one app) >> >> objvalmo >> >> serial

[go-nuts] Re: File organization in a github-ed Go project

2017-02-27 Thread brainman
> if someone wants to fork my github project, he would have change my username bstarynk/ by his own one in every package path When I contribute to other people's projects on Gitub, I just "go get" their package, and adjust my "git remote" settings for the package so can push all my changes into

[go-nuts] Re: File organization in a github-ed Go project

2017-02-27 Thread Basile Starynkevitch
On Monday, February 27, 2017 at 3:02:24 PM UTC+1, C Banning wrote: > > Try organizing your project as: > > monimelt > > src > > cmd (or "monimelt", if there's just one app) > > objvalmo > > serial > > > > Then include $HOME/monimelt in your GOPATH. > >> >> Thanks for the suggestion. BTW, I

[go-nuts] Re: File organization in a github-ed Go project

2017-02-27 Thread C Banning
Try organizing your project as: monimelt src cmd (or "monimelt", if there's just one app) objvalmo serial Then include $HOME/monimelt in your GOPATH. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a