mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 12:51:54 +00:00
Validate versioned fleet configuration
This commit is contained in:
1 parent
e9089ac5af
commit
b015c6a758
11 files changed
+222
-11
No files matched your search
@@ -3,6 +3,7 @@ import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } fr
|
||||
import { homedir } from 'node:os';
|
||||
import { dirname, isAbsolute, join, resolve } from 'node:path';
|
||||
import { TorchError } from './errors.mjs';
|
||||
import { loadProjectConfig } from './config.mjs';
|
||||
import { readInstallManifest, writeInstallManifest } from './install.mjs';
|
||||
|
||||
function git(root, args, { optional = false } = {}) {
|
||||
@@ -25,7 +26,7 @@ function parseJson(path, code) {
|
||||
}
|
||||
|
||||
export function loadFleetDefinition(root) {
|
||||
const config = parseJson(join(root, '.torch', 'torch.yaml'), 'CONFIG_INVALID');
|
||||
const config = loadProjectConfig(root);
|
||||
const roster = parseJson(join(root, '.torch', 'roster.yaml'), 'ROSTER_INVALID');
|
||||
return { config, roster };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user