Skip to content

Commit

Permalink
cleanup: remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Nov 15, 2019
1 parent 0c9da3d commit 986ba43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function installCompiler(range) {
if (!cache) {
cache = yield downloadCompiler(version);
}
core_1.debug(`${cache} was added to path`);
core_1.addPath(cache);
return version;
});
Expand All @@ -35,7 +34,6 @@ exports.installCompiler = installCompiler;
function downloadCompiler(version) {
return __awaiter(this, void 0, void 0, function* () {
const spPath = yield tool_cache_1.downloadTool(versions[version].toEndpoint());
core_1.debug(`${versions[version].toEndpoint()} was downloaded`);
let extracted;
if (process.platform === 'linux') {
extracted = yield tool_cache_1.extractTar(spPath);
Expand All @@ -44,7 +42,6 @@ function downloadCompiler(version) {
extracted = yield tool_cache_1.extractZip(spPath);
}
let spRoot = path_1.join(extracted, 'addons', 'sourcemod', 'scripting');
core_1.debug(`${spRoot} was added to tool cache`);
return yield tool_cache_1.cacheDir(spRoot, 'sourcepawn', version);
});
}
8 changes: 1 addition & 7 deletions src/installer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { find as findCache, downloadTool, extractTar, extractZip, cacheDir } from '@actions/tool-cache';
import { addPath, debug } from '@actions/core';
import { addPath } from '@actions/core';
import { maxSatisfying } from 'semver';
import { join as pathJoin } from 'path';
import { getVersions } from './scraper';
Expand All @@ -21,17 +21,13 @@ export async function installCompiler(range: string): Promise<string> {
cache = await downloadCompiler(version);
}

debug(`${cache} was added to path`);

addPath(cache);

return version;
}

async function downloadCompiler(version: string) {
const spPath = await downloadTool(versions[version].toEndpoint());

debug(`${versions[version].toEndpoint()} was downloaded`);

let extracted;

Expand All @@ -43,7 +39,5 @@ async function downloadCompiler(version: string) {

let spRoot = pathJoin(extracted, 'addons', 'sourcemod', 'scripting');

debug(`${spRoot} was added to tool cache`);

return await cacheDir(spRoot, 'sourcepawn', version);
}

0 comments on commit 986ba43

Please sign in to comment.