mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 03:10:36 +00:00
fix(update): reject openclaw source package targets
This commit is contained in:
@@ -96,4 +96,17 @@ describe("install-cli.sh", () => {
|
||||
expect(script).toContain('freshness_flag="--before=$(date -u');
|
||||
expect(script).toContain("env -u NPM_CONFIG_BEFORE -u npm_config_before");
|
||||
});
|
||||
|
||||
it("rejects OpenClaw GitHub source targets for npm installs", () => {
|
||||
const result = runInstallCliShell(`
|
||||
set -euo pipefail
|
||||
source "${SCRIPT_PATH}"
|
||||
OPENCLAW_VERSION=main
|
||||
install_openclaw
|
||||
`);
|
||||
|
||||
expect(result.status).toBe(1);
|
||||
expect(result.stdout).toContain("npm installs do not support OpenClaw GitHub source targets");
|
||||
expect(result.stdout).toContain("--install-method git --version main");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user