Skip to content

Commit a62b1dd

Browse files
committed
refactor(check): remove git path compatibility fallback
1 parent 3397a27 commit a62b1dd

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

cmd/ore/commands/check.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,11 @@ func RunCheck(args []string) error {
8080
primaryName = fmt.Sprintf("%s-%s", spec.Name, shortGitRevision(spec.Revision))
8181
}
8282
primaryPath := filepath.Join(gitGemsDir, primaryName)
83-
legacyPath := filepath.Join(gitGemsDir, spec.FullName())
8483

8584
if _, err := os.Stat(primaryPath); err != nil {
86-
// Backward compatibility: older layouts/tests may still use FullName()
87-
if _, legacyErr := os.Stat(legacyPath); legacyErr != nil {
88-
missing = append(missing, fmt.Sprintf("%s (%s) [git]", spec.Name, spec.Version))
89-
if *verbose {
90-
fmt.Printf(" ✗ %s (%s) [git] - not found at: %s (or %s)\n", spec.Name, spec.Version, primaryPath, legacyPath)
91-
}
92-
} else {
93-
installed++
94-
if *verbose {
95-
fmt.Printf(" ✓ %s (%s) [git]\n", spec.Name, spec.Version)
96-
}
85+
missing = append(missing, fmt.Sprintf("%s (%s) [git]", spec.Name, spec.Version))
86+
if *verbose {
87+
fmt.Printf(" ✗ %s (%s) [git] - not found at: %s\n", spec.Name, spec.Version, primaryPath)
9788
}
9889
} else {
9990
installed++

0 commit comments

Comments
 (0)