3

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'```

1 Answer 1

2

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.

5
  • some of the packages are not available in GoCenter and also we have some private packages that we want to use from GitHub Ent and BitBucket. Commented Jun 24, 2019 at 23:01
  • Also I tried resolving packages from Virtual repo I get same error. Commented Jun 24, 2019 at 23:02
  • Unsupported repository request means Artifactory can't find that go repo. It has to be local or virtual. What have you used for your goproxy?
    – DonMy
    Commented Jun 25, 2019 at 5:33
  • Thanks I got github working I had configured Artifactory as Module provider. Now only Bitbucket on prime is remaining. for bitbucket I have configured Stash / Bitbuket Private as module provider. Still when I try to fetch module It gives 404 without trying to fetch it from bitbucket-go remote repo in artifactory. Commented Jun 25, 2019 at 18:46
  • Unfortunately, BitBucket and GitHub on prem are not supported yet. But do upgrade to Artifactory 6.10 or up, there was some fixes to Go focusing on the UX of those flows and more...
    – DonMy
    Commented Jun 26, 2019 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.