Skip to content

Commit 7ff2001

Browse files
committed
move tree-sitter-ssh-server-config to its own root folder
1 parent ee4a045 commit 7ff2001

File tree

14 files changed

+216
-23
lines changed

14 files changed

+216
-23
lines changed

build.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ if (!$SkipBuild) {
269269
# projects are in dependency order
270270
$projects = @(
271271
"tree-sitter-dscexpression",
272+
"tree-sitter-ssh-server-config",
272273
"security_context_lib",
273274
"dsc_lib",
274275
"dsc",
@@ -284,8 +285,8 @@ if (!$SkipBuild) {
284285
"."
285286
)
286287
$pedantic_unclean_projects = @()
287-
$clippy_unclean_projects = @("tree-sitter-dscexpression")
288-
$skip_test_projects_on_windows = @("tree-sitter-dscexpression")
288+
$clippy_unclean_projects = @("tree-sitter-dscexpression", "tree-sitter-ssh-server-config")
289+
$skip_test_projects_on_windows = @("tree-sitter-dscexpression", "tree-sitter-ssh-server-config")
289290

290291
if ($IsWindows) {
291292
$projects += $windows_projects
@@ -306,7 +307,8 @@ if (!$SkipBuild) {
306307
try {
307308
Push-Location "$PSScriptRoot/$project" -ErrorAction Stop
308309

309-
if ($project -eq 'tree-sitter-dscexpression') {
310+
# check if the project is either tree-sitter-dscexpression or tree-sitter-ssh-server-config
311+
if (($project -eq 'tree-sitter-dscexpression') -or ($project -eq 'tree-sitter-ssh-server-config')) {
310312
if ($UpdateLockFile) {
311313
cargo generate-lockfile
312314
}

sshdconfig/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tracing = "0.1.37"
2323
tracing-subscriber = "0.3.17"
2424
tree-sitter = "0.25"
2525
tree-sitter-rust = "0.24"
26-
tree-sitter-ssh-server-config = { path = "./tree-sitter-ssh-server-config" }
26+
tree-sitter-ssh-server-config = { path = "../tree-sitter-ssh-server-config" }
2727

2828
[build-dependencies]
2929
cc="*"

sshdconfig/build.ps1

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,6 @@ if (Test-Path $target) {
8989
Remove-Item $target -Recurse -ErrorAction Stop
9090
}
9191
New-Item -ItemType Directory $target > $null
92-
93-
$failed = $false
94-
$project = 'tree-sitter-ssh-server-config'
95-
Write-Host -ForegroundColor Cyan "Building $project ... for $architecture"
96-
try {
97-
Push-Location "$PSScriptRoot/$project" -ErrorAction Stop
98-
./build.ps1
99-
if ($LASTEXITCODE -ne 0) {
100-
$failed = $true
101-
}
102-
} finally {
103-
Pop-Location
104-
}
105-
106-
if ($failed) {
107-
Write-Host -ForegroundColor Red "Tree-sitter build failed"
108-
exit 1
109-
}
110-
11192
## Build format_json
11293
Write-Host -ForegroundColor Cyan "Building sshdconfig ... for $architecture"
11394
try {
File renamed without changes.
File renamed without changes.
File renamed without changes.

tree-sitter-ssh-server-config/Cargo.lock

Lines changed: 210 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)