Re:Go at Digital Ocean
by imsofuture on Sunday November 05, 2017 @08:33PM
(#15632940)
Okay, updated my example with `echo`. Check it out:
Using the original package name: https://github.com/sofuture/colortest/blob/master/main.go#L7
I can refer to my fork: https://github.com/sofuture/colortest/blob/master/Gopkg.toml...
Re:Go at Digital Ocean
by alain_gilbert on Sunday November 05, 2017 @09:00PM
(#15633022)
Oh I see.
Thank you for the example :)
Re:Go at Digital Ocean
by imsofuture on Sunday November 05, 2017 @08:19PM
(#15632884)
That doesn't matter is what I'm saying :) The package name of my fork isn't changed, and doesn't need to be, regardless of what else uses it. The only thing I had to do was specify 'use my fork's repo' in the Gopkg.toml file.
Edit: I'll fork echo in my example and show you.
It works for you because it's a small project and you are not actually importing other of your own packages inside it.
But if you look at "echo", it import some other "echo" packages inside of it.