File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
src/lib/iac/test/v2/local-cache/rules-bundle Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,14 @@ export async function downloadRulesBundle(
19
19
// IAC_BUNDLE_PATH is a developer setting that is not useful to most users. It
20
20
// is not a replacement for custom rules.
21
21
if ( config . IAC_BUNDLE_PATH ) {
22
+ debugLog ( `Located a local rules bundle at ${ testConfig . iacCachePath } ` ) ;
22
23
return config . IAC_BUNDLE_PATH ;
23
24
}
24
25
26
+ debugLog (
27
+ `Downloading the rules bundle and saving it at ${ testConfig . iacCachePath } ` ,
28
+ ) ;
29
+
25
30
let downloadDurationSeconds = 0 ;
26
31
27
32
const timer = new TimerMetricInstance ( 'iac_rules_bundle_download' ) ;
Original file line number Diff line number Diff line change 1
- import * as createDebugLogger from 'debug' ;
2
-
3
1
import { TestConfig } from '../../types' ;
4
2
import { downloadRulesBundle } from './download' ;
5
3
6
- const debugLogger = createDebugLogger ( 'snyk-iac' ) ;
7
-
8
4
export async function initRulesBundle ( testConfig : TestConfig ) : Promise < string > {
9
5
// We are currently using the legacy rules bundle and we need to re-download it each time to use the latest one available.
10
6
// debugLogger('Looking for rules bundle locally');
11
7
// let rulesBundlePath = await lookupLocalRulesBundle(testConfig);
12
8
13
- debugLogger (
14
- `Downloading the rules bundle and saving it at ${ testConfig . iacCachePath } ` ,
15
- ) ;
16
9
return await downloadRulesBundle ( testConfig ) ;
17
10
}
You can’t perform that action at this time.
0 commit comments