From e24534f85ccce51f7a8240ec50391901a58010ad Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 5 May 2024 11:32:44 +0200 Subject: [PATCH] make: fix directory change --- completers/make_completer/cmd/root.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/completers/make_completer/cmd/root.go b/completers/make_completer/cmd/root.go index c6a332b15a..10cafe8c26 100644 --- a/completers/make_completer/cmd/root.go +++ b/completers/make_completer/cmd/root.go @@ -1,8 +1,6 @@ package cmd import ( - "fmt" - "github.com/carapace-sh/carapace" "github.com/carapace-sh/carapace-bin/pkg/actions/tools/make" "github.com/spf13/cobra" @@ -77,9 +75,6 @@ func init() { carapace.Gen(rootCmd).PositionalAnyCompletion( carapace.ActionCallback(func(c carapace.Context) carapace.Action { file := "Makefile" - if rootCmd.Flag("directory").Changed { - file = fmt.Sprintf("%v/Makefile", rootCmd.Flag("directory").Value.String()) - } if rootCmd.Flag("file").Changed { file = rootCmd.Flag("file").Value.String() }