> On 3 Feb 2021, at 10.17, Nicholas Yue <
yue.ni...@gmail.com> wrote:
>
> Hi,
>
> I am relatively new to golang coming from a C++/Python world.
>
> When contributing to C++/Python projects on GitHub, I usually fork the project, make changes to hit and submit a pull request to the author/maintainer.
>
> I found that the above didn't work for me.
>
> I am hoping to contribute to the following project
>
>
https://github.com/scipipe/scipipe
>
> I am trying to ascertain if my challenges is because Golang has specific ways for contribution or the above project is setup differently. I can't tell as I am new to Golang.
>
> I clone the forked project to $HOME/go/src/github/scipipe and testing it in another directory. I found that whenever I run my small test program, it pulls from some archive rather than my cloned repository and hence is not able to see the changes I made.
>
> Is there some special way to import the module so that it picked my clone directory rather than pulling down a zip archive versioned copy ?
>
Inside the go.mod file in your test directory, add the "replace" directive. Something like this may works,