From 6f0db8ac2a340118f77616ac4ac0e71b8ff9ab98 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Fri, 4 Oct 2024 12:24:14 -0400 Subject: [PATCH] Need to copy dir not file on contract test (#563) Looks like a typo bug --- cmd/command/pr/pr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/command/pr/pr.go b/cmd/command/pr/pr.go index 18fa73f7..830a3268 100644 --- a/cmd/command/pr/pr.go +++ b/cmd/command/pr/pr.go @@ -146,7 +146,7 @@ func handlePrContracts(c *cli.Context) error { if contracts.Spec.Templates != nil { tplCopy := contracts.Spec.Templates - if err := utils.CopyFile(tplCopy.From, tplCopy.To); err != nil { + if err := utils.CopyDir(tplCopy.From, tplCopy.To); err != nil { return err } }