From 02734a5b4ffc555a47c5029422ae4015b59c138f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 Aug 2021 13:10:25 -0700 Subject: vanity: rewrite with templates and external config Rewrite the program to use external templates and load the configuration from an external source. We don't want to blindly send all the requests to some SCM since we want to support only some modules / program that way. There's two templates, one for requests coming from a browser, which list all the supported modules, and one for the `go get` command. For requests coming from `go get`, we generate a template that indicates where the repository is. The external configuration is in YAML, and list all the supported repositories, and the URL of the repository. It assumes a default VCS for all the modules (git in our case). --- tools/govanity/vanity.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tools/govanity/vanity.yaml (limited to 'tools/govanity/vanity.yaml') diff --git a/tools/govanity/vanity.yaml b/tools/govanity/vanity.yaml new file mode 100644 index 0000000..a757729 --- /dev/null +++ b/tools/govanity/vanity.yaml @@ -0,0 +1,5 @@ +baseUrl: golang.fcuny.net +vcs: git +repositories: + - name: homelab + repo: https://git.fcuny.net/fcuny/homelab -- cgit v1.2.3 From 63d639ba8fcdde69a64aba07c5e1b16169593165 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 Aug 2021 13:37:05 -0700 Subject: config: replace homelab with tools The repository for `homelab` is not ready yet. --- tools/govanity/vanity.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/govanity/vanity.yaml') diff --git a/tools/govanity/vanity.yaml b/tools/govanity/vanity.yaml index a757729..13e0adf 100644 --- a/tools/govanity/vanity.yaml +++ b/tools/govanity/vanity.yaml @@ -1,5 +1,5 @@ baseUrl: golang.fcuny.net vcs: git repositories: - - name: homelab - repo: https://git.fcuny.net/fcuny/homelab + - name: tools + repo: https://git.fcuny.net/fcuny/tools -- cgit v1.2.3 From 19b3dccc1ff31534df3636d4d7d6a28c0ae1e189 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 Aug 2021 15:46:51 -0700 Subject: config: add vanity --- tools/govanity/vanity.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/govanity/vanity.yaml') diff --git a/tools/govanity/vanity.yaml b/tools/govanity/vanity.yaml index 13e0adf..57c18a1 100644 --- a/tools/govanity/vanity.yaml +++ b/tools/govanity/vanity.yaml @@ -1,5 +1,7 @@ baseUrl: golang.fcuny.net vcs: git repositories: + - name: vanity + repo: https://git.fcuny.net/fcuny/govanity - name: tools repo: https://git.fcuny.net/fcuny/tools -- cgit v1.2.3 From 67c5eff3dfe11d3741d42e70fcd5f960038f4011 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 Oct 2021 18:03:22 -0700 Subject: config: add mpd-stats --- tools/govanity/vanity.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/govanity/vanity.yaml') diff --git a/tools/govanity/vanity.yaml b/tools/govanity/vanity.yaml index 57c18a1..cfe5b03 100644 --- a/tools/govanity/vanity.yaml +++ b/tools/govanity/vanity.yaml @@ -5,3 +5,5 @@ repositories: repo: https://git.fcuny.net/fcuny/govanity - name: tools repo: https://git.fcuny.net/fcuny/tools + - name: mpd-stats + repo: https://git.fcuny.net/fcuny/mpd-stats -- cgit v1.2.3