Skip to content

Conversation

@chrisgavin
Copy link
Contributor

This adds a relatively simple CacheDirectory struct, which represents a directory in which the contents of the CodeQL Action repository and releases can be stored. This allows for the Action to be updated incrementally rather than re-downloaded in full each time the tool is run.

The cache directory is versioned along with the sync tool. If you are pulling the Action and the cache version does not match the version of the sync tool the cache will be deleted and replaced. If you are pushing the Action and the cache version does not match an error will be returned. This allows us to change the format of the cache in future versions if required.

There are also a few functions for navigating the cache, for example for finding the directory in which the Git contents is stored and navigating releases of the CodeQL bundle.

@chrisgavin chrisgavin force-pushed the cache-directory branch 2 times, most recently from 97f04fd to 5d23595 Compare August 18, 2020 13:59
Base automatically changed from initial-implementation to main August 18, 2020 14:07
@chrisgavin chrisgavin merged commit bc71bbf into main Aug 18, 2020
@chrisgavin chrisgavin deleted the cache-directory branch August 18, 2020 14:29
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