about summary refs log tree commit diff
path: root/tvix/nar-bridge/pkg/pathinfosvc
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-05T15·25+0300
committerclbot <clbot@tvl.fyi>2023-10-05T18·51+0000
commita2c81de4cb11757642a12b941ef6caa5f78cf3bb (patch)
treed6b5e0a691822325c4bca96a517628531fb115b4 /tvix/nar-bridge/pkg/pathinfosvc
parent61e5a63fe1afcca76c05d9eedaea9fb3c8919101 (diff)
docs(tvix/nar-bridge): fix comment r/6714
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 <cbrewster@hey.com>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nar-bridge/pkg/pathinfosvc')
-rw-r--r--tvix/nar-bridge/pkg/pathinfosvc/server.go2
1 files changed, 1 insertions, 1 deletions
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))