Actually build the js

This commit is contained in:
Timothy Clem
2019-09-30 11:29:33 -07:00
parent a803c8eafa
commit 895038cb9e
3 changed files with 26 additions and 42 deletions

View File

@@ -29,11 +29,10 @@ export function _findHaskellToolVersion(
}
const toolPath: string = path.join(baseInstallDir, tool, version, 'bin');
throw new Error(`Looking in ${toolPath}`);
// if (fs.existsSync(toolPath)) {
// core.debug(`Found tool in cache ${tool} ${version}`);
// core.addPath(toolPath);
// } else {
// throw new Error(`Version ${version} of ${tool} not found`);
// }
if (fs.existsSync(toolPath)) {
core.debug(`Found tool in cache ${tool} ${version}`);
core.addPath(toolPath);
} else {
throw new Error(`Version ${version} of ${tool} not found`);
}
}