Search code examples
goartifactory

How to use JFrog Artifactory to proxy GitHub as Go Repository?


I want to use Go Remote repository caching/proxying Github. I have created Go remote repo github proxying https://github.com/ (Credentials added as mentioned in https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories).

When I run go get artifactory log shows following error:

2019-05-29 16:01:29,586 [http-nio-8081-exec-252] [ERROR] (o.a.a.g.r.GoResource:88) - Unsupported go repository request for 'github'```

Solution

  • In Artifactory Go repositories, you can't resolve from a remote repository directly, packages has to be resolved from a virtual repo. Just include it in any Go virtual repository and you should be good to go.

    Also, why not use gocenter for Go packages? It's much more reliable IMO.