about summary refs log tree commit diff
path: root/tvix/nar-bridge/pkg/reader/reader.go
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-03T09·42+0300
committerclbot <clbot@tvl.fyi>2023-10-05T06·11+0000
commit6e9a5dcd5937496e4fb5ef6ebcc2b9875be4c68b (patch)
treeda0ba5918a2773d2c6caca5d359a9b9321727784 /tvix/nar-bridge/pkg/reader/reader.go
parent174485038c15643d3002c0f4773d74480daa8a77 (diff)
refactor(tvix/nar-bridge): rename item to stackItem r/6692
Change-Id: I76c8db3b04d9f97e51e91f7d36a4dd8c6500d1a2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9526
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/nar-bridge/pkg/reader/reader.go')
-rw-r--r--tvix/nar-bridge/pkg/reader/reader.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/nar-bridge/pkg/reader/reader.go b/tvix/nar-bridge/pkg/reader/reader.go
index 764766b621fb..08fdd39a7f06 100644
--- a/tvix/nar-bridge/pkg/reader/reader.go
+++ b/tvix/nar-bridge/pkg/reader/reader.go
@@ -20,7 +20,7 @@ type Reader struct {
 }
 
 // An item on the directories stack
-type item struct {
+type stackItem struct {
 	path      string
 	directory *castorev1pb.Directory
 }
@@ -60,7 +60,7 @@ func (r *Reader) Import(
 	var rootFile *castorev1pb.FileNode
 	var stackDirectory *castorev1pb.Directory
 
-	var stack = []item{}
+	var stack = []stackItem{}
 
 	// popFromStack is used when we transition to a different directory or
 	// drain the stack when we reach the end of the NAR.
@@ -253,7 +253,7 @@ func (r *Reader) Import(
 					Files:       []*castorev1pb.FileNode{},
 					Symlinks:    []*castorev1pb.SymlinkNode{},
 				}
-				stack = append(stack, item{
+				stack = append(stack, stackItem{
 					directory: directory,
 					path:      hdr.Path,
 				})