[gh ext] Fix GitKind extension directory path

This commit is contained in:
Azeem Sajid 2025-03-15 17:55:29 +05:00
parent 234d2effd5
commit e02ee18ed2

View file

@ -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 {