Skip to content

Commit 8f62d9c

Browse files
Merge pull request #431 from math-inc/codex/public-windows-installer-20260327
Pin current Windows installer bootstrap targets
2 parents fd431ba + 7939875 commit 8f62d9c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from pathlib import Path
2+
3+
4+
REPO_ROOT = Path(__file__).resolve().parent.parent
5+
6+
7+
def test_windows_installers_do_not_reference_legacy_repositories():
8+
install_ps1 = (REPO_ROOT / "scripts" / "install.ps1").read_text(encoding="utf-8")
9+
install_cmd = (REPO_ROOT / "scripts" / "install.cmd").read_text(encoding="utf-8")
10+
11+
for source in (install_ps1, install_cmd):
12+
assert "morph-labs/gauss-agent" not in source
13+
assert "NousResearch/gauss-agent" not in source
14+
15+
16+
def test_windows_installers_use_current_bootstrap_targets():
17+
install_ps1 = (REPO_ROOT / "scripts" / "install.ps1").read_text(encoding="utf-8")
18+
install_cmd = (REPO_ROOT / "scripts" / "install.cmd").read_text(encoding="utf-8")
19+
20+
assert '$DefaultRepoUrl = "https://github.com/math-inc/OpenGauss.git"' in install_ps1
21+
assert 'powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0install.ps1" %*' in install_cmd

0 commit comments

Comments
 (0)