There is a single dep that gitea depends on that is hosted on source hut. At one time source hut was going to block all go mod access but then they worked out a deal to make things work with go proxy [0]. Unfortunately, we weren't using a proxy and we have gotten 403 forbidden errors trying to pull this dep. Use the global public go proxy to hopefully address this problem. Note we have to set this on both the gitea and gitea-ssh targets because the gitea-ssh build apparently also compiles gitea even though I'm not sure we use any of that content in the final build. It is also worth noting that the default GOPROXY value is https://proxy.golang.org,direct which would've worked for us except that we try to keep our Dockerfile in sync with upstream and they override this default to just direct by default in the Dockerfile... We could diverge from upstream and drop setting GOPROXY entirely and then things would probably just work. [0] https://github.com/go-gitea/gitea/issues/22389 Change-Id: Ic94a581386779ba7fbab47c1919467e5c14e9209
2.1 KiB
2.1 KiB