3 ms·
In case whether 'search & replace' method is not an option you may create your own 'proxy' server like gopkg.in [1], since Golang packages don't have to be only
by piotrkubisa 10y ago
In case whether 'search & replace' method is not an option you may create your own 'proxy' server like gopkg.in [1], since Golang packages don't have to be only on GitHub [2] you may set up mirroring rules to overcome problems with package location, version/revision, or library when GitHub downtime may occur. Personally, I don't think if creating own proxy server as solution would be quite big deal whether there are many various dependency tools for Go. 'Search & replace' is not mission impossible either. Go is not PHP - it just won't compile if (local) dependency is broken.
[1]: https://github.com/niemeyer/gopkg https://github.com/niemeyer/gopkg
[2]: https://golang.org/cmd/go/#hdr-Remote_import_paths https://golang.org/cmd/go/#hdr-Remote_import_paths