how to `go install` from gitea

I’m trying to install a package from a self-hosted gitea instance. I’m trying to get a package running go install but I’m getting this error

no required module provides package; to add it:
        go get

Any help would be appreciated to show me how can I configure my go env.

I’ve set GOPRIVATE="" but it still not working, I don’t know if I’m missing something.

Ok, I’ve got an answer from stackoverflow. Which I had to use go get instead of go installmy fault sorry :smiley: how to `go install` from gitea - Stack Overflow