Skip to content

fix: clear last known good cache entry - #894

Closed
wangxpych wants to merge 1 commit into
nodejs:mainfrom
wangxpych:fix/cache-clear-lkg
Closed

fix: clear last known good cache entry#894
wangxpych wants to merge 1 commit into
nodejs:mainfrom
wangxpych:fix/cache-clear-lkg

Conversation

@wangxpych

Copy link
Copy Markdown

Summary

  • remove lastKnownGood.json when running either corepack cache clean or corepack cache clear
  • keep deletion scoped to Corepack-managed cache entries instead of recursively removing the configurable cache root
  • cover both command aliases with regression tests

Fixes #675

Tests

  • yarn build
  • yarn test --run (173 passed, 1 expected failure)
  • yarn lint
  • yarn typecheck

Signed-off-by: xuping.wang <2232455931@qq.com>
@wangxpych

Copy link
Copy Markdown
Author

Closing because I’m stepping back from maintaining this contribution. Thanks for your time.

@wangxpych wangxpych closed this Sep 4, 2026
@MikeMcC399

Copy link
Copy Markdown
Contributor

https://agentscan.tools/user/wangxpych

Automation signals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cache clear does not remove lastKnownGood.json from cache

2 participants