Need help setting a git server for get get

I added a go-import meta tag to my git server’s website on the repo page and it looks like

but when I try running “go get brijesh.dev/kairos” I get an error saying ‘go: unrecognized import path “brijesh.dev/kairos”: reading https://brijesh.dev/kairos?go-get=1: 404 Not Found’

it is probably because it is looking at brijesh.dev/kairos?go-get=1(which is invalid) and not brijesh.dev/kairos.git?go-get=1(the correct address) even though it the url is with .git in the go-import tag

You should make sure that you can access your repo, 404 means you URL somewhere are wrong or you server do not have your content.

The url should not have .git. It should contain the path you want to use in your import statement, with https:// in front and “?go-get=1” at the end. Here’s an example:

curl https://gopkg.in/yaml.v2?go-get=1

This is not a git server. I call it a go-get server. I’ve written one here: GitHub - melato/goget