Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS-2040/] Fix panic and test failure caused by invalid TCLI_HOME index filesystem state #9

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ethangreen-dev
Copy link
Member

@ethangreen-dev ethangreen-dev commented Apr 9, 2024

TL;DR

This PR adds additional checks to the PackageIndex::open function to ensure that:

  1. TCLI_HOME/index is created if it does not exist
  2. The package index is synchronized if any of the following files are not present: lookup.json, index.json, header.json.

It also includes a simple fix to the test workflow to ensure that tests are being run sequentially. It's not a great solution, but it's an alright stopgap until I refactor how tests are setup.

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.

1 participant