From aaf70b1945182a09bf7b76f2ee7595302cdbd2d8 Mon Sep 17 00:00:00 2001 From: Alberto Carretero Date: Thu, 26 Sep 2024 18:04:27 +0200 Subject: [PATCH] add comment to clarify conflict resolution --- internal/slicer/slicer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/slicer/slicer.go b/internal/slicer/slicer.go index 0b2af526..89c7abc8 100644 --- a/internal/slicer/slicer.go +++ b/internal/slicer/slicer.go @@ -275,6 +275,10 @@ func Run(options *RunOptions) error { break } } + // It is okay to take the first pathInfo because the release has been + // validated when read and there are no conflicts. The only field that + // was not checked was until because it is not used for conflict + // validation. pathInfo := slices[0].Contents[relPath] pathInfo.Until = until data := pathData{