MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / getReleaseBuildNumber

Function getReleaseBuildNumber

lib/app/cli.ts:151–158  ·  view source on GitHub ↗
(distPath: string, isDist: boolean)

Source from the content-addressed store, hash-verified

149 * Extract release build number from file
150 */
151export function getReleaseBuildNumber(distPath: string, isDist: boolean): string {
152 // Use the canned build only if provided
153 const releaseBuildPath = path.join(distPath, 'release_build');
154 if (isDist && fs.existsSync(releaseBuildPath)) {
155 return fs.readFileSync(releaseBuildPath).toString().trim();
156 }
157 return '<no build number found>';
158}
159
160/**
161 * Detect if running under Windows Subsystem for Linux

Callers 2

parseArgsToAppArgumentsFunction · 0.85
cli-tests.tsFile · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected