From e02ee18ed2b23bd8c8a3141e622e953f5723368b Mon Sep 17 00:00:00 2001 From: Azeem Sajid Date: Sat, 15 Mar 2025 17:55:29 +0500 Subject: [PATCH] [gh ext] Fix `GitKind` extension directory path --- pkg/cmd/extension/extension.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/extension/extension.go b/pkg/cmd/extension/extension.go index dc7ffa8c3..f30bf63c1 100644 --- a/pkg/cmd/extension/extension.go +++ b/pkg/cmd/extension/extension.go @@ -163,7 +163,8 @@ func (e *Extension) IsPinned() bool { isPinned = manifest.IsPinned } case GitKind: - pinPath := filepath.Join(e.Path(), fmt.Sprintf(".pin-%s", e.CurrentVersion())) + extDir := filepath.Dir(e.path) + pinPath := filepath.Join(extDir, fmt.Sprintf(".pin-%s", e.CurrentVersion())) if _, err := os.Stat(pinPath); err == nil { isPinned = true } else {