Skip to content

Commit 9959bcb

Browse files
author
Elias Kassell
authored
Make the stateless CLI package installation error clearer (#1795)
1 parent 1ef847f commit 9959bcb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cli/api/commands/install.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export async function install(projectPath: string) {
1717
const dataformCoreVersion = readDataformCoreVersionFromWorkflowSettings(resolvedProjectPath);
1818
if (dataformCoreVersion) {
1919
throw new Error(
20-
"Package installation is only supported when specifying @dataform/core version in " +
21-
"'package.json'"
20+
"No installation is needed when using workflow_settings.yaml, as packages are installed at " +
21+
"runtime."
2222
);
2323
}
2424

cli/index_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ defaultAssertionDataset: dataform_assertions
108108
(await getProcessResult(execFile(nodePath, [cliEntryPointPath, "install", projectDir])))
109109
.stderr
110110
).contains(
111-
"Package installation is only supported when specifying @dataform/core version in " +
112-
"'package.json'"
111+
"No installation is needed when using workflow_settings.yaml, as packages are installed at " +
112+
"runtime."
113113
);
114114
});
115115

0 commit comments

Comments
 (0)