Skip to content

Commit ca0ab00

Browse files
authored
CM/CMX v4.1.4: bug fixes (#1413)
2 parents 7cbffbd + 816d90f commit ca0ab00

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/test-cmx.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
python3 -m pip install --ignore-installed --verbose pip setuptools
3939
python3 -m pip install cmind
4040
python3 -m cmind
41+
# cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
42+
cmx pull repo mlcommons@ck --dir2=cm4mlops
4143
- name: Test
4244
run: |
4345
python tests/test_cm.py

cm/CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## CMX V4.1.3.1
1+
## CMX V4.1.4
22
- fixed minor bug for "cmx --version"
3+
- added "cmx pull repo --dir2" to support "dir/dir" directories
34

45
## CMX V4.1.3
56
- fixed a bug with "cmx -log" (#1410)

cm/cmind/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# White paper: https://arxiv.org/abs/2406.16791
1010
# Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md
1111

12-
__version__ = "4.1.3.1"
12+
__version__ = "4.1.4"
1313

1414
from cmind.core import access
1515
from cmind.core import x

cm/cmind/repo/automation/repo/module.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def pull(self, i):
4343
(checkout) (str): Git checkout
4444
(checkout_only) (bool): only checkout existing repo
4545
(dir) (str): use repository in this directory
46+
(dir2) (str): use repository in this "directory/directory"
4647
(depth) (int): Git depth
4748
(desc) (str): brief repository description (1 line)
4849
(prefix) (str): extra directory to keep CM artifacts
@@ -75,6 +76,11 @@ def pull(self, i):
7576
checkout_only = i.get('checkout_only', False)
7677
skip_zip_parent_dir = i.get('skip_zip_parent_dir', False)
7778

79+
dir2 = i.get('dir2', '')
80+
if dir2 != '':
81+
i['dir'] = dir2 + '/' + dir2
82+
del (i['dir2'])
83+
7884
# Check alias is URL
7985
if url == '' and (alias.startswith('https://') or alias.startswith('git@')):
8086
url = alias

0 commit comments

Comments
 (0)