run lint and build tasks

This commit is contained in:
plukevdh 2023-05-22 09:41:36 -04:00
parent c401b8cb9d
commit a9bf05db07
No known key found for this signature in database
GPG key ID: 4CDF66F8A7057826
3 changed files with 29 additions and 9 deletions

View file

@ -157,17 +157,17 @@ function resolveVersionInput(): string {
version = installer.parseGoVersionFile(versionFilePath);
} else {
// in the case of no version specification, reach for .tool-versions
if(toolVersionsPath && !fs.existsSync(toolVersionsPath)) {
if (toolVersionsPath && !fs.existsSync(toolVersionsPath)) {
throw new Error(
`The specified .tool-versions file at ${toolVersionsPath} does not exist`
`The specified .tool-versions file at ${toolVersionsPath} does not exist`
);
}
if (!toolVersionsPath) {
toolVersionsPath = '.tool-versions';
if(!fs.existsSync(toolVersionsPath)) {
if (!fs.existsSync(toolVersionsPath)) {
throw new Error(
`No .tool-versions file was found in the project path. Please specify using tool-versions-file`
`No .tool-versions file was found in the project path. Please specify using tool-versions-file`
);
}
}