diff options
author | Florian Klink <flokli@flokli.de> | 2023-10-17T12·42+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-10-17T19·51+0000 |
commit | 1b26bf21e3305232b9bbdc928a063da9be9eaee0 (patch) | |
tree | d5ee335a6c76cc54095266ec685e4a8dae515a2e /tvix/store/protos | |
parent | e38733a955f6f6fc8962cf0e669d9cf4696bc14d (diff) |
chore(tvix): move store golang bindings to tvix/store-go r/6844
Similar to the castore-go CL before, this also updates the store-go bindings to the new layout. Change-Id: Id73d7ad43f7d70171ab021728e303300c5db71f0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9788 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to '')
-rw-r--r-- | tvix/store-go/export.go (renamed from tvix/store/protos/export.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/export_test.go (renamed from tvix/store/protos/export_test.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/go.mod (renamed from tvix/store/protos/go.mod) | 0 | ||||
-rw-r--r-- | tvix/store-go/go.sum (renamed from tvix/store/protos/go.sum) | 0 | ||||
-rw-r--r-- | tvix/store-go/pathinfo.go (renamed from tvix/store/protos/pathinfo.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/pathinfo.pb.go (renamed from tvix/store/protos/pathinfo.pb.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/pathinfo_test.go (renamed from tvix/store/protos/pathinfo_test.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/pick_next_node_test.go (renamed from tvix/store/protos/pick_next_node_test.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/rpc_pathinfo.pb.go (renamed from tvix/store/protos/rpc_pathinfo.pb.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/rpc_pathinfo_grpc.pb.go (renamed from tvix/store/protos/rpc_pathinfo_grpc.pb.go) | 0 | ||||
-rw-r--r-- | tvix/store-go/testdata/emptydirectory.nar (renamed from tvix/store/protos/testdata/emptydirectory.nar) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | tvix/store-go/testdata/onebyteregular.nar (renamed from tvix/store/protos/testdata/onebyteregular.nar) | bin | 120 -> 120 bytes | |||
-rw-r--r-- | tvix/store-go/testdata/symlink.nar (renamed from tvix/store/protos/testdata/symlink.nar) | bin | 136 -> 136 bytes | |||
-rw-r--r-- | tvix/store/protos/default.nix | 34 |
14 files changed, 34 insertions, 0 deletions
diff --git a/tvix/store/protos/export.go b/tvix/store-go/export.go index 889311efe70b..889311efe70b 100644 --- a/tvix/store/protos/export.go +++ b/tvix/store-go/export.go diff --git a/tvix/store/protos/export_test.go b/tvix/store-go/export_test.go index 6c33bdc90117..6c33bdc90117 100644 --- a/tvix/store/protos/export_test.go +++ b/tvix/store-go/export_test.go diff --git a/tvix/store/protos/go.mod b/tvix/store-go/go.mod index d56e2d9bc1b4..d56e2d9bc1b4 100644 --- a/tvix/store/protos/go.mod +++ b/tvix/store-go/go.mod diff --git a/tvix/store/protos/go.sum b/tvix/store-go/go.sum index c412d838e289..c412d838e289 100644 --- a/tvix/store/protos/go.sum +++ b/tvix/store-go/go.sum diff --git a/tvix/store/protos/pathinfo.go b/tvix/store-go/pathinfo.go index 8c0b94f200c1..8c0b94f200c1 100644 --- a/tvix/store/protos/pathinfo.go +++ b/tvix/store-go/pathinfo.go diff --git a/tvix/store/protos/pathinfo.pb.go b/tvix/store-go/pathinfo.pb.go index b8296114f602..b8296114f602 100644 --- a/tvix/store/protos/pathinfo.pb.go +++ b/tvix/store-go/pathinfo.pb.go diff --git a/tvix/store/protos/pathinfo_test.go b/tvix/store-go/pathinfo_test.go index 9a329f0010fc..9a329f0010fc 100644 --- a/tvix/store/protos/pathinfo_test.go +++ b/tvix/store-go/pathinfo_test.go diff --git a/tvix/store/protos/pick_next_node_test.go b/tvix/store-go/pick_next_node_test.go index 830c6cacc136..830c6cacc136 100644 --- a/tvix/store/protos/pick_next_node_test.go +++ b/tvix/store-go/pick_next_node_test.go diff --git a/tvix/store/protos/rpc_pathinfo.pb.go b/tvix/store-go/rpc_pathinfo.pb.go index 8a3c10a82101..8a3c10a82101 100644 --- a/tvix/store/protos/rpc_pathinfo.pb.go +++ b/tvix/store-go/rpc_pathinfo.pb.go diff --git a/tvix/store/protos/rpc_pathinfo_grpc.pb.go b/tvix/store-go/rpc_pathinfo_grpc.pb.go index 10d8a7ffa49c..10d8a7ffa49c 100644 --- a/tvix/store/protos/rpc_pathinfo_grpc.pb.go +++ b/tvix/store-go/rpc_pathinfo_grpc.pb.go diff --git a/tvix/store/protos/testdata/emptydirectory.nar b/tvix/store-go/testdata/emptydirectory.nar index baba55862255..baba55862255 100644 --- a/tvix/store/protos/testdata/emptydirectory.nar +++ b/tvix/store-go/testdata/emptydirectory.nar Binary files differdiff --git a/tvix/store/protos/testdata/onebyteregular.nar b/tvix/store-go/testdata/onebyteregular.nar index b8c94932bf0c..b8c94932bf0c 100644 --- a/tvix/store/protos/testdata/onebyteregular.nar +++ b/tvix/store-go/testdata/onebyteregular.nar Binary files differdiff --git a/tvix/store/protos/testdata/symlink.nar b/tvix/store-go/testdata/symlink.nar index 7990e4ad5bc2..7990e4ad5bc2 100644 --- a/tvix/store/protos/testdata/symlink.nar +++ b/tvix/store-go/testdata/symlink.nar Binary files differdiff --git a/tvix/store/protos/default.nix b/tvix/store/protos/default.nix new file mode 100644 index 000000000000..5f56eda79b3d --- /dev/null +++ b/tvix/store/protos/default.nix @@ -0,0 +1,34 @@ +{ depot, pkgs, ... }: { + # Produces the golang bindings. + go-bindings = pkgs.stdenv.mkDerivation { + name = "go-bindings"; + + src = depot.nix.sparseTree { + name = "castore-protos"; + root = depot.path.origSrc; + paths = [ + # We need to include castore.proto (only), as it's referred. + ../../castore/protos/castore.proto + ./pathinfo.proto + ./rpc_pathinfo.proto + ../../../buf.yaml + ../../../buf.gen.yaml + ]; + }; + + nativeBuildInputs = [ + pkgs.buf + pkgs.protoc-gen-go + pkgs.protoc-gen-go-grpc + ]; + + buildPhase = '' + export HOME=$TMPDIR + buf lint + buf generate + + mkdir -p $out + cp tvix/store/protos/*.pb.go $out/ + ''; + }; +} |