tvl-depot/ops
Florian Klink 9786255267 feat(ops/modules/code.tvl.fyi): fix go get for tvix store protos
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>
2023-09-10 11:43:29 +00:00
..
besadii fix(ops/besadii) test trigger.ref against configured branch 2022-06-09 15:26:25 +00:00
buildkite fix(ops/buildkite): set default_branch explicitly 2023-02-01 17:25:06 +00:00
deploy-whitby refactor(deploy-whitby): use nvd instead of nix-diff 2022-01-13 08:14:00 +00:00
dns chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
gerrit-tvl fix(gerrit-tvl): Use only one build filter 2022-05-28 13:39:58 +00:00
glesys feat(ops/glesys): delegate signup.tvl.fyi to whitby in DNS 2023-09-05 14:44:35 +00:00
journaldriver chore(journaldriver): bump version number 2023-01-13 08:31:14 +00:00
keycloak chore(ops/keycloak): drop oauth2-proxy client 2023-07-01 23:35:13 +00:00
kontemplate style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
machines feat(ops/modules): deploy //web/pwcrypt to signup.tvl.fyi 2023-09-05 14:44:36 +00:00
modules feat(ops/modules/code.tvl.fyi): fix go get for tvix store protos 2023-09-10 11:43:29 +00:00
mq_cli style(rust): Format all Rust code with rustfmt 2022-02-08 12:06:39 +00:00
pipelines feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
posix_mq.rs style(rust): Format all Rust code with rustfmt 2022-02-08 12:06:39 +00:00
secrets chore(ops/secrets): drop oauth2_proxy.age 2023-07-01 23:35:14 +00:00
terraform feat(ops/terraform/deploy-nixos): make target_user_ssh_key optional 2023-05-16 09:55:23 +00:00
users fix(users): rename zseri -> fogti 2023-07-07 20:06:02 +00:00
yandex-cloud-rs fix(ops/yandex-cloud-rs): fix dev-dependencies for examples 2023-06-14 10:06:37 +00:00
nixos.nix fix(ops/nixos): use builtins.storePath to avoid dumping pkgs.path 2022-05-29 10:22:25 +00:00