about summary refs log tree commit diff
path: root/tools/govanity/vanity.yaml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-12 13:10:25 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-12 15:09:48 -0700
commit02734a5b4ffc555a47c5029422ae4015b59c138f (patch)
tree0e1a358114bfd9b0e4a0d36a0d0e363d6485e924 /tools/govanity/vanity.yaml
parentbuild: convert to go module (diff)
downloadworld-02734a5b4ffc555a47c5029422ae4015b59c138f.tar.gz
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).
Diffstat (limited to 'tools/govanity/vanity.yaml')
-rw-r--r--tools/govanity/vanity.yaml5
1 files changed, 5 insertions, 0 deletions
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