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

Function readExactPyPyVersionFile

src/utils.ts:87–95  ·  view source on GitHub ↗
(installDir: string)

Source from the content-addressed store, hash-verified

85 * PYPY_VERSION contains exact version from 'versions.json'
86 */
87export function readExactPyPyVersionFile(installDir: string) {
88 let pypyVersion = '';
89 const fileVersion = path.join(installDir, PYPY_VERSION_FILE);
90 if (fs.existsSync(fileVersion)) {
91 pypyVersion = fs.readFileSync(fileVersion).toString().trim();
92 }
93
94 return pypyVersion;
95}
96
97export function writeExactPyPyVersionFile(
98 installDir: string,

Callers 1

findPyPyToolCacheFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected