9786255267
There's a go.mod in in tvix/store/protos, which sets the module path to code.tvl.fyi/tvix/store/protos. While this path makes kinda sense, it's currently not possible to `go get` it from that location, as we serve the cgit interface from there. Fortunately, `go get` has a mechanism to determine clone URLs for a given go module path, as documented in https://go.dev/ref/mod#vcs-find. We simply need to serve a small HTML file at that path, describing the proper clone URL. This points the clone URL for code.tvl.fyi/tvix/store/protos to a josh- provided subtree of just :/tvix/store/protos, which will contain the root go.mod file. We need another layer of indirection as nginx can't have an `alias` directive inside a conditional block (but can have a redirect). Contrary to https://b.tvl.fyi/issues/299#comment-464, it seems to work for our usecase. It might become a problem if we actually serve `go.mod` files in a nested fashion at some point, but let's look at that once we get there. Fixes b/299. Change-Id: Idcad795105af5d57e6d06de6e232881dccf9110b Reviewed-on: https://cl.tvl.fyi/c/depot/+/9290 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: adisbladis <adisbladis@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> |
||
---|---|---|
.. | ||
tvl-slapd | ||
www | ||
.skip-subtree | ||
atward.nix | ||
auto-deploy.nix | ||
automatic-gc.nix | ||
cgit.nix | ||
clbot.nix | ||
default-imports.nix | ||
default.nix | ||
depot-inbox.nix | ||
depot-replica.nix | ||
gerrit-queue.nix | ||
irccat.nix | ||
josh.nix | ||
journaldriver.nix | ||
known-hosts.nix | ||
monorepo-gerrit.nix | ||
nixery.nix | ||
open_eid.nix | ||
owothia.nix | ||
panettone.nix | ||
paroxysm.nix | ||
prometheus-fail2ban-exporter.nix | ||
quassel.nix | ||
README.md | ||
restic.nix | ||
smtprelay.nix | ||
sourcegraph.nix | ||
tvl-buildkite.nix | ||
tvl-cache.nix | ||
tvl-headscale.nix | ||
tvl-users.nix | ||
v4l2loopback.nix |
NixOS modules
This folder contains various NixOS modules shared by our NixOS configurations.
It is not read by readTree
.