diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-09T14·28+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-12-11T21·43+0000 |
commit | a1b2dc8aaf87b73025f4090308c9649e8bf66a99 (patch) | |
tree | c97cbc4bda657a98b99348b1d3b02f7026b1a821 /ops | |
parent | fd27d8ddc3a27fd89a3a132343c6a1ad8da3671c (diff) |
feat(tvix/build-go): init r/7152
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 <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/modules/www/code.tvl.fyi.nix | 14 |
1 files changed, 12 insertions, 2 deletions
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" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/build-go git https://code.tvl.fyi/depot.git:/tvix/build-go.git"></html>''}; + } + location = /go-get/tvix/castore-go { alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/castore-go git https://code.tvl.fyi/depot.git:/tvix/castore-go.git"></html>''}; } @@ -32,9 +36,9 @@ alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/nar-bridge git https://code.tvl.fyi/depot.git:/tvix/nar-bridge.git"></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}; |