Skip to content

Commit a03e03f

Browse files
authored
* rose_meta_path appended with rose-meta for both core and apps. (#121)
* New metadata directory added to INVALID_METADATA list. Co-authored-by: Maggie Hendry <[email protected]>
1 parent e116f4b commit a03e03f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lfric_macros/validate_rose_meta.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# dependency
1919
INVALID_METADATA = [
2020
"jules-lfric",
21+
"jules-lsm",
2122
"lfric-jules-shared",
2223
"socrates-radiation",
2324
"um-aerosol",
@@ -217,16 +218,16 @@ def main():
217218
if args.apps:
218219
source_path = args.apps
219220
meta_paths += f"-M {os.path.join(args.apps, "rose-meta")} "
220-
rose_meta_path += args.apps
221+
rose_meta_path += f"{os.path.join(args.apps, "rose-meta")}"
221222
if args.core:
222223
meta_paths += f"-M {os.path.join(args.core, "rose-meta")} "
223224
if rose_meta_path:
224225
# Apps has already started this
225-
rose_meta_path += f":{args.core}"
226+
rose_meta_path += f":{os.path.join(args.core, "rose-meta")}"
226227
else:
227228
# Apps hasn't been set
228229
source_path = args.core
229-
rose_meta_path = args.core
230+
rose_meta_path = f"{os.path.join(args.core, "rose-meta")}"
230231

231232
if check_rose_metadata(rose_meta_path, source_path) or check_rose_stem_apps(
232233
meta_paths, source_path

0 commit comments

Comments
 (0)