Skip to content

Commit 58b6526

Browse files
Fourth try fix CI/CD
1 parent f7c704a commit 58b6526

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/scripts/install-packs.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
import argparse
22
import os
33
import subprocess
4-
import get_workspace_packs
4+
import glob
5+
import json
6+
7+
def get_workspace_packs(root):
8+
# Find the packs by globbing using the 'provide' patterns in the manifest.
9+
os.chdir(root)
10+
with open('.codeqlmanifest.json') as manifest_file:
11+
manifest = json.load(manifest_file)
12+
packs = []
13+
for pattern in manifest['provide']:
14+
packs.extend(glob.glob(pattern, recursive=True))
15+
16+
return packs
517

618
parser = argparse.ArgumentParser(description="Install CodeQL library pack dependencies.")
719
parser.add_argument('--mode', required=False, choices=['use-lock', 'update', 'verify', 'no-lock'], default="use-lock", help="Installation mode, identical to the `--mode` argument to `codeql pack install`")

0 commit comments

Comments
 (0)