fix: go bin location

This commit is contained in:
A13501350
2025-10-21 01:31:22 +08:00
parent 6f53e50297
commit e6192b8056

View File

@@ -306,6 +306,13 @@ jobs:
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests" $testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
go install github.com/coreruleset/go-ftw@latest go install github.com/coreruleset/go-ftw@latest
cd go\bin $goBinPath = ""
& go-ftw.exe -d $testRuleDir --cloud -e 920380-1 --show-failures-only if ($env:GOBIN) {
$goBinPath = $env:GOBIN
} elseif ($env:GOPATH) {
$goBinPath = Join-Path $env:GOPATH "bin"
} else {
$goBinPath = Join-Path $env:USERPROFILE "go\bin"
}
& "$goBinPath\go-ftw.exe" -d $testRuleDir --cloud -e 920380-1 --show-failures-only