Fix issues with exit code on windows, fix gh-docs
Some checks failed
GoReleaser / goreleaser (push) Has been cancelled
Release Docker Build / docker (push) Has been cancelled

This commit is contained in:
Mukhtar Akere
2025-08-10 11:35:50 +01:00
parent 4be4f6b293
commit a0e9f7f553
2 changed files with 3 additions and 3 deletions

View File

@@ -24,5 +24,5 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: cd docs && pip install -r requirements.txt
- run: cd docs && mkdocs gh-deploy --force

View File

@@ -18,7 +18,7 @@ func WasHardTerminated(err error) bool {
return false
}
// No Signaled() on Windows; consider "hard terminated" if not success.
return ws.ExitCode() != 0
return ws.ExitStatus() != 0 // Use the ExitStatus() method
}
// ExitCode returns the process exit code when available.
@@ -31,5 +31,5 @@ func ExitCode(err error) (int, bool) {
if !ok {
return 0, false
}
return ws.ExitCode(), true
return ws.ExitStatus(), true // Use the ExitStatus() method
}