Skip to content

Commit

Permalink
Disable partial check because of the nodegit compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
creativebay committed Dec 19, 2022
1 parent c7f83d4 commit f77425b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 1,432 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"commander": "^7.2.0",
"fdir": "^5.1.0",
"minimatch": "^3.0.4",
"nodegit": "^0.28.0-alpha.18",
"picomatch": "^2.3.0",
"strip-json-comments": "^3.1.1",
"tsconfig-paths": "^3.10.1",
Expand All @@ -45,5 +44,6 @@
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
},
"optionalDependencies": {}
}
8 changes: 2 additions & 6 deletions src/core/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ import { FDirSourceFileProvider } from './FdirSourceFileProvider';
import NormalizedPath from '../types/NormalizedPath';
import { runWithConcurrentLimit } from '../utils/runWithConcurrentLimit';
import getConfigManager from '../utils/getConfigManager';
import { getFenceAndImportDiffsFromGit } from '../utils/diffing/getFenceAndImportDiffsFromGit';
import { getPartialCheckFromImportDiffs } from '../utils/diffing/getPartialCheckFromImportDiffs';
import * as path from 'path';
import { PartialCheck } from '../types/PartialCheck';

async function getPartialCheck(): Promise<PartialCheck> {
let options = getOptions();
if (options.sinceGitHash) {
const diffs = await getFenceAndImportDiffsFromGit(options.sinceGitHash);
if (diffs) {
return getPartialCheckFromImportDiffs(diffs);
}
reportWarning(`Partial check is not implemented, running good fences in default mode.`);
return Promise.resolve({ fences: [], sourceFiles: [] });
}
}

Expand Down
210 changes: 0 additions & 210 deletions src/utils/diffing/getFenceAndImportDiffsFromGit.ts

This file was deleted.

28 changes: 0 additions & 28 deletions src/utils/diffing/getFenceAndSourcePatches.ts

This file was deleted.

114 changes: 0 additions & 114 deletions src/utils/diffing/getFenceDiff.ts

This file was deleted.

Loading

0 comments on commit f77425b

Please sign in to comment.