Skip to content

Clean up cache dir at end of expedition#291

Merged
j-atkins merged 2 commits intomainfrom
clean-cache
Feb 17, 2026
Merged

Clean up cache dir at end of expedition#291
j-atkins merged 2 commits intomainfrom
clean-cache

Conversation

@j-atkins
Copy link
Collaborator

@j-atkins j-atkins commented Feb 17, 2026

Since #269, a cache dir is written in the expedition directory, storing information such as a record of problems encountered and keeping track of which have been resolved etc.

However, if running virtualship run with --difficulty-level easy there is no need to preserve the cache dir at the end of the simulation. It holds no useful information and in fact only interferes if re-running the same expedition.

Therefore, this PR adds a step at the end of a successful expedition simulation (when running in difficulty-level easy mode) to delete the cache dir.

  • Tests

@j-atkins j-atkins merged commit 6e69bba into main Feb 17, 2026
9 of 10 checks passed
@j-atkins j-atkins deleted the clean-cache branch February 17, 2026 15:05
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.

2 participants

Comments