Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit eaf74bb

Browse files
committed
Debug DB upgrade failure
1 parent 37067db commit eaf74bb

File tree

8 files changed

+548
-16
lines changed

8 files changed

+548
-16
lines changed

codeql-learninglab-check/package/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ function isConfig(config: any): config is Config {
308308
// Upgrade the database if neccesary
309309
const databasePath = path.join(CONFIG_PATH, config.databasePath);
310310
console.log('Upgrading CodeQL Database');
311-
await execFile('codeql', ['database', 'upgrade', databasePath]);
311+
const updateResult = await execFile('codeql', ['database', 'upgrade', '-v', databasePath]);
312+
console.log(updateResult.stderr);
313+
console.log(updateResult.stdout);
312314

313315
const csvPath = (queryPath: string) => path.join(OUTPUT_PATH, queryPath + '.csv');
314316

courses/cpp/ctf-segv/image/config/new-golden.txt

+537
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import javascript
2+
3+
from CallExpr dollarCall
4+
select dollarCall

courses/javascript/unsafe-jquery/answers/step-01.ql

-5
This file was deleted.

courses/javascript/unsafe-jquery/answers/step-02.ql

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"databasePath": "esbena_bootstrap-pre-27047_204f9cf",
33
"locationPaths": "https://github.com/esbena/bootstrap-pre-27047/blob/204f9cf910d09b97b4075893e6da807443b55e03{path}#L{line-start}-L{line-end}",
4-
"expectedResults": { }
4+
"expectedResults": {
5+
"calls-to-dollar.ql": false
6+
}
57
}

courses/javascript/unsafe-jquery/image/config/step-01.csv

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ok, you're done with the setup, moving on!

0 commit comments

Comments
 (0)