From fbc6d7f5d37846133ca92dabf2e2115fcee06e19 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 7 Nov 2023 12:42:10 -0500 Subject: build: fix go-git binary build --- plumbing/transport/file/common_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plumbing/transport') diff --git a/plumbing/transport/file/common_test.go b/plumbing/transport/file/common_test.go index 7e033a8..a217e97 100644 --- a/plumbing/transport/file/common_test.go +++ b/plumbing/transport/file/common_test.go @@ -29,8 +29,8 @@ func (s *CommonSuite) SetUpSuite(c *C) { s.ReceivePackBin = filepath.Join(s.tmpDir, "git-receive-pack") s.UploadPackBin = filepath.Join(s.tmpDir, "git-upload-pack") bin := filepath.Join(s.tmpDir, "go-git") - cmd := exec.Command("go", "build", "-o", bin, - "../../../cli/go-git/...") + cmd := exec.Command("go", "build", "-o", bin) + cmd.Dir = "../../../cli/go-git" c.Assert(cmd.Run(), IsNil) c.Assert(os.Symlink(bin, s.ReceivePackBin), IsNil) c.Assert(os.Symlink(bin, s.UploadPackBin), IsNil) -- cgit