diff --git a/pkg/controller/utils/capability.go b/pkg/controller/utils/capability.go index 03ea5499d..4840b38c4 100644 --- a/pkg/controller/utils/capability.go +++ b/pkg/controller/utils/capability.go @@ -268,7 +268,7 @@ func cacheMatchesRemote(cachePath, remoteURL string) bool { if err != nil || len(entities) == 0 { return false } - recorded, err := os.ReadFile(cachePath + cacheRemoteMarkerSuffix) + recorded, err := os.ReadFile(filepath.Clean(cachePath + cacheRemoteMarkerSuffix)) if err != nil { return false }