From fc01bc78183f5f72dc8d30d594fe0c080842409b Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Fri, 4 Oct 2024 10:45:10 -0400 Subject: [PATCH] Need to copy dir not file on contract test 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 } }