Skip to content

Commit 970b3bb

Browse files
committed
fix: remove ripgrep governance dependency
1 parent 9980a5f commit 970b3bb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/governance-docs-tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ Assert-Governance ($readme -match "Pinned upstream mirror" -and $readme -match "
6464
Assert-Governance ($installation -match "private collection" -and $installation -match "mirrored Matt\s+package") "Installation guide must distinguish the private collection from its upstream content."
6565
Assert-Governance ($admission -match "concrete" -and $admission -match "fork") "Admission policy must retain concrete fork-necessity wording."
6666

67-
$documentationFiles = @("README.md", "CATALOG.md", "CHANGELOG.md", "AGENTS.md") + @(rg --files docs)
67+
$documentationFiles = @("README.md", "CATALOG.md", "CHANGELOG.md", "AGENTS.md") + @(
68+
Get-ChildItem -LiteralPath (Join-Path $Root "docs") -Recurse -Filter "*.md" -File |
69+
ForEach-Object { $_.FullName.Substring($Root.Length + 1).Replace("\", "/") }
70+
)
6871
foreach ($file in $documentationFiles) {
6972
$filePath = Join-Path $Root $file
7073
$text = Get-Content -LiteralPath $filePath -Raw

0 commit comments

Comments
 (0)