Go - Serving modules

Gianni Ceccarelli dakkar at thenautilus.net
Thu Jan 12 09:19:54 UTC 2023


On Wed, 11 Jan 2023 20:50:35 -0500
Levi Durfee <levi.durfee at gmail.com> wrote:

> I'm using scan-path to find the repositories.

Then you can set per-repository options inside each repo ``config``
file (I manage those via ``gitolite``, but you can just edit them).

So for a repo at ``/var/lib/gitrepos/foo-go.git``, you'd edit
``/var/lib/gitrepos/foo-go.git/config`` and add::

  [cgit]
      extra-head-content = <meta name="go-import" content="git.example.com/foo-go git https://git.example.com/foo-go" /></head>

But yes, having a macro-expanded ``head-include`` option would be useful.

-- 
	Dakkar - <Mobilis in mobile>
	GPG public key fingerprint = A071 E618 DD2C 5901 9574
	                             6FE2 40EA 9883 7519 3F88
	                    key id = 0x75193F88



More information about the CGit mailing list