You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In module mode in Go 1.13, the go command checks all possible module paths in parallel for the requested package.
Gitea returns a non-valid Git fetch URL for e.g. https://try.gitea.io/test, as seen in the example below. This makes it impossible to use Go modules pulling dependencies from a private Gitea instance, because Go 1.13 expects no clone URL if it is not a valid repository path (see GitLab behavior). This issue is related to golang/go#34075. See that issue for more information.
There is some code which could be used in https://github.com/profects/gitea/tree/fix-go1.13-invalid-import-path, and I will probably create a merge request sometime soon. It would be nice if this issue could be fixed in a 1.9 minor release. The fix in this branch currently works for us, but I have not tried to run the test suite yet.
[x]
):Description
To quote:
Gitea returns a non-valid Git fetch URL for e.g.
https://try.gitea.io/test
, as seen in the example below. This makes it impossible to use Go modules pulling dependencies from a private Gitea instance, because Go 1.13 expects no clone URL if it is not a valid repository path (see GitLab behavior). This issue is related to golang/go#34075. See that issue for more information.But test is an organization and this information should not be added, as it makes it impossible to retrieve dependencies using go get in Go 1.13.
The text was updated successfully, but these errors were encountered: