From a2c81de4cb11757642a12b941ef6caa5f78cf3bb Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 5 Oct 2023 18:25:26 +0300 Subject: docs(tvix/nar-bridge): fix comment We run narInfo.Check to ensure this parses to a StorePath, not nixpath.Check. Change-Id: Id91183128df74a60d98fa2a31174cd879194c34d Reviewed-on: https://cl.tvl.fyi/c/depot/+/9550 Reviewed-by: Connor Brewster Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/nar-bridge/pkg/pathinfosvc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/nar-bridge/pkg/pathinfosvc/server.go b/tvix/nar-bridge/pkg/pathinfosvc/server.go index 116d06e6b6a9..464ca6f61b13 100644 --- a/tvix/nar-bridge/pkg/pathinfosvc/server.go +++ b/tvix/nar-bridge/pkg/pathinfosvc/server.go @@ -248,7 +248,7 @@ func (p *PathInfoServiceServer) Get(ctx context.Context, getPathInfoRequest *sto // currently the root node has no name yet. outPath, err := storepath.FromAbsolutePath(narInfo.StorePath) if err != nil { - // unreachable due to nixpath.Check() + // unreachable due to narInfo.Check() panic(err) } newName := []byte(nixbase32.EncodeToString(outPath.Digest) + "-" + string(outPath.Name)) -- cgit 1.4.1