about summary refs log tree commit diff
path: root/tools/govanity/main.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ref(tools/govanity): add a function to load the configurationFranck Cuny2022-06-151-7/+20
| | | | | | | Change-Id: I36c6da7eba64e6f877d1a17c700c56a70434625a Reviewed-on: https://cl.fcuny.net/c/world/+/422 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
* vanity: rewrite with templates and external configFranck Cuny2021-08-121-22/+108
| | | | | | | | | | | | | | | | | | 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).
* Redirect go code to github.comFranck Cuny2018-03-301-0/+35