Skip to content

Commit 5db483d

Browse files
committed
Show the custodian result for debugging
1 parent 6170729 commit 5db483d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/caching/github-actions-cache.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,26 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import * as pathlib from 'path';
7+
import {execFile} from 'child_process';
8+
import {createHash} from 'crypto';
89
import * as unbudgetedFs from 'fs/promises';
9-
import * as fs from '../util/fs.js';
1010
import * as https from 'https';
11-
import {createHash} from 'crypto';
11+
import * as pathlib from 'path';
12+
import {inspect} from 'util';
1213
import {scriptReferenceToString} from '../config.js';
13-
import {getScriptDataDir} from '../util/script-data-dir.js';
1414
import '../util/dispose.js';
15+
import * as fs from '../util/fs.js';
1516
import {fileBudget} from '../util/fs.js';
16-
import {execFile} from 'child_process';
17-
import '../util/dispose.js';
18-
import {inspect} from 'util';
17+
import {getScriptDataDir} from '../util/script-data-dir.js';
1918

2019
import type * as http from 'http';
21-
import type {Cache, CacheHit} from './cache.js';
2220
import type {ScriptReference} from '../config.js';
21+
import type {Result} from '../error.js';
22+
import type {InvalidUsage, UnknownErrorThrown} from '../event.js';
2323
import type {Fingerprint} from '../fingerprint.js';
2424
import type {Logger} from '../logging/logger.js';
2525
import type {AbsoluteEntry} from '../util/glob.js';
26-
import type {Result} from '../error.js';
27-
import type {InvalidUsage, UnknownErrorThrown} from '../event.js';
26+
import type {Cache, CacheHit} from './cache.js';
2827

2928
/**
3029
* Caches script output to the GitHub Actions caching service.
@@ -111,6 +110,7 @@ export class GitHubActionsCache implements Cache {
111110
},
112111
};
113112
}
113+
console.log(`CUSTODIAN RESULT:`, JSON.stringify(result, null, 2));
114114
return {
115115
ok: true,
116116
value: new GitHubActionsCache(

0 commit comments

Comments
 (0)