Skip to content

fix(repositoryCache): skip loading empty cache files#35427

Merged
rarkins merged 1 commit intorenovatebot:mainfrom
Gabriel-Ladzaretti:fix/ignore_empty_cache_files
Apr 17, 2025
Merged

fix(repositoryCache): skip loading empty cache files#35427
rarkins merged 1 commit intorenovatebot:mainfrom
Gabriel-Ladzaretti:fix/ignore_empty_cache_files

Conversation

@Gabriel-Ladzaretti
Copy link
Copy Markdown
Contributor

@Gabriel-Ladzaretti Gabriel-Ladzaretti commented Apr 17, 2025

Changes

Skips loading empty repository cache files.

Context

whenever a new repo is processed, its cache file is empty. this, in turn, causes Renovate to raise a warning in the dependency dashboard due to the cache file failing schema validation, which is expected for newly added scanned repos.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins rarkins added this pull request to the merge queue Apr 17, 2025
return;
}

if (!is.nonEmptyString(oldCache)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combine with previous condition

Merged via the queue into renovatebot:main with commit 173b2cc Apr 17, 2025
40 checks passed
@rarkins rarkins deleted the fix/ignore_empty_cache_files branch April 17, 2025 13:26
@renovate-release
Copy link
Copy Markdown

🎉 This PR is included in version 39.248.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants