From a1b2dc8aaf87b73025f4090308c9649e8bf66a99 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 9 Dec 2023 16:28:00 +0200 Subject: feat(tvix/build-go): init This adds the generated golang bindings for tvix-build. Change-Id: I2eb0d1cc38bc2fa34afd7c904eea05c5ee192cce Reviewed-on: https://cl.tvl.fyi/c/depot/+/10242 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: raitobezarius --- ops/modules/www/code.tvl.fyi.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'ops') diff --git a/ops/modules/www/code.tvl.fyi.nix b/ops/modules/www/code.tvl.fyi.nix index efb4b6a8f5a2..e565b03b1187 100644 --- a/ops/modules/www/code.tvl.fyi.nix +++ b/ops/modules/www/code.tvl.fyi.nix @@ -20,6 +20,10 @@ alias ${depot.tvix.docs.svg}/component-flow.svg; } + location = /go-get/tvix/build-go { + alias ${pkgs.writeText "go-import-metadata.html" ''''}; + } + location = /go-get/tvix/castore-go { alias ${pkgs.writeText "go-import-metadata.html" ''''}; } @@ -32,9 +36,9 @@ alias ${pkgs.writeText "go-import-metadata.html" ''''}; } - location = /tvix/nar-bridge { + location = /tvix/build-go { if ($args ~* "/?go-get=1") { - return 302 /go-get/tvix/nar-bridge; + return 302 /go-get/tvix/build-go; } } @@ -50,6 +54,12 @@ } } + location = /tvix/nar-bridge { + if ($args ~* "/?go-get=1") { + return 302 /go-get/tvix/nar-bridge; + } + } + # Git operations on depot.git hit josh location /depot.git { proxy_pass http://127.0.0.1:${toString config.services.depot.josh.port}; -- cgit 1.4.1