Skip to content

Commit

Permalink
Add dstPath to log
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikstrid committed Nov 13, 2024
1 parent 2224f65 commit ed28f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func appendFileToTar(tw *tar.Writer, srcPath, dstPath string, info os.FileInfo,
}

for _, cap := range opts.Capabilities {
logrus.Infof("path regex: %s path: %s", cap.Regex, srcPath)
logrus.Infof("path regex: %s path: %s dst: %s", cap.Regex, srcPath, dstPath)
re := regexp.MustCompile(cap.Regex)
if re.Match([]byte(srcPath)) {
logrus.Infof("Regex matches!: %s path: %s", cap.Regex, srcPath)
Expand Down

0 comments on commit ed28f53

Please sign in to comment.