about summary refs log tree commit diff
path: root/tools/govanity/go.mod
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/go.mod
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/go.mod')
-rw-r--r--tools/govanity/go.mod2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/govanity/go.mod b/tools/govanity/go.mod
index 9d1ea60..d37f146 100644
--- a/tools/govanity/go.mod
+++ b/tools/govanity/go.mod
@@ -1,3 +1,5 @@
 module golang.fcuny.net/vanity
 
 go 1.16
+
+require gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b