Skip to content

Commit

Permalink
fix: remove dependency that was using git URL and failing installs
Browse files Browse the repository at this point in the history
This reverts commit 40e7136, reversing
changes made to 7775c04.

git url is causing issues installing the CLI in envs without global git command
  • Loading branch information
JackuB committed Feb 4, 2021
1 parent 2bdd4f6 commit 3df91ac
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 369 deletions.
2 changes: 0 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ src/cli/commands/test/formatters/format-reachability.ts @snyk/flow
help/ @snyk/hammer
* @snyk/hammer @snyk/boost
src/cli/commands/test/iac-output.ts @snyk/cloudconfig
src/cli/commands/test/iac-local-execution/ @snyk/cloudconfig
src/lib/cloud-config-projects.ts @snyk/cloudconfig
src/lib/iac/ @snyk/cloudconfig
src/lib/snyk-test/iac-test-result.ts @snyk/cloudconfig
Expand All @@ -13,7 +12,6 @@ src/lib/snyk-test/run-iac-test.ts @snyk/cloudconfig
test/acceptance/cli-test/iac/ @snyk/cloudconfig
test/fixtures/iac/ @snyk/cloudconfig
test/smoke/spec/iac/ @snyk/cloudconfig
test/smoke/.iac-data/ @snyk/cloudconfig
src/lib/errors/invalid-iac-file.ts @snyk/cloudconfig
src/lib/errors/unsupported-options-iac-error.ts @snyk/cloudconfig
help/commands-docs/iac-examples.md @snyk/cloudconfig
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
/test/acceptance/workspaces/**/target/
test/acceptance/workspaces/**/.gradle
test/**/.gradle
.iac-data
!test/smoke/.iac-data
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"author": "snyk.io",
"license": "Apache-2.0",
"dependencies": {
"@open-policy-agent/opa-wasm": "git+https://github.com/open-policy-agent/npm-opa-wasm.git#f4a21fe6f4d70706f85106dc6ea867983747e040",
"@snyk/cli-interface": "2.11.0",
"@snyk/dep-graph": "1.21.0",
"@snyk/gemfile": "1.2.0",
Expand Down
86 changes: 0 additions & 86 deletions src/cli/commands/test/iac-local-execution/index.ts

This file was deleted.

63 changes: 0 additions & 63 deletions src/cli/commands/test/iac-local-execution/policy-engine.ts

This file was deleted.

121 changes: 0 additions & 121 deletions src/cli/commands/test/iac-local-execution/results-formatter.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/cli/commands/test/iac-local-execution/types.ts

This file was deleted.

10 changes: 1 addition & 9 deletions src/cli/commands/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ import {
getDisplayedOutput,
} from './formatters/format-test-results';

import * as iacLocalExecution from './iac-local-execution';

const debug = Debug('snyk-test');
const SEPARATOR = '\n-------------------------------------------------------\n';

Expand Down Expand Up @@ -135,13 +133,7 @@ async function test(...args: MethodArgs): Promise<TestCommandResult> {
let res: (TestResult | TestResult[]) | Error;

try {
if (options.iac && options.experimental) {
// this path is an experimental feature feature for IaC which does issue scanning locally without sending files to our Backend servers.
// once ready for GA, it is aimed to deprecate our remote-processing model, so IaC file scanning in the CLI is done locally.
res = await iacLocalExecution.test(path, options);
} else {
res = await snyk.test(path, testOpts);
}
res = await snyk.test(path, testOpts);
if (testOpts.iacDirFiles) {
options.iacDirFiles = testOpts.iacDirFiles;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/snyk-test/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function assembleQueryString(options) {
return Object.keys(qs).length !== 0 ? qs : null;
}

export enum SEVERITY {
enum SEVERITY {
LOW = 'low',
MEDIUM = 'medium',
HIGH = 'high',
Expand Down
1 change: 0 additions & 1 deletion test/smoke/.iac-data/data.json

This file was deleted.

Binary file removed test/smoke/.iac-data/policy.wasm
Binary file not shown.

0 comments on commit 3df91ac

Please sign in to comment.