Thanks, if I read that right the post just rehashes the workflow for 
working with remotes with git and go get.

The question I have concerns the import path in the code.

If I fork, *github.com/original/foo*
clone it locally to, *github.com/me/foo*
Add *github.com/me/foo/internal/bar/bar.go* and the following import 
statement to *github.com/me/foo/main.go*

// idiomatic fully-qualified import path
import (
 "github.com/me/foo/internal/bar" 
)

Commit and push to my remote fork, *github.com/me/foo*

Now if I submit the push request to *github.com/original/foo*, the import 
statement will be broken since the import path is to my repo, 
*github.com/me/foo*. 
If I change the import path in my repo to that of the original, then that 
breaks my repo.

How is this situation suppose to be handled when contributing? 



On Tuesday, May 2, 2017 at 11:55:41 PM UTC-7, Nathan Kerr wrote:
>
> http://blog.sgmansfield.com/2016/06/working-with-forks-in-go/ gives some 
> good pointers on how to do this.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to