MCPcopy Index your code
hub / github.com/actions/setup-python / computeKeys

Method computeKeys

src/cache-distributions/pip-cache.ts:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 protected async computeKeys() {
66 const hash =
67 (await glob.hashFiles(this.cacheDependencyPath)) ||
68 (await glob.hashFiles(this.cacheDependencyBackupPath));
69 const osSegment = await this.getLinuxInfoKeySegment();
70 const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}${osSegment}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
71 const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}${osSegment}-python-${this.pythonVersion}-${this.packageManager}`;
72
73 return {
74 primaryKey,
75 restoreKey: [restoreKey]
76 };
77 }
78}
79
80export default PipCache;

Callers 1

restoreCacheFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected