mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 08:40:29 +00:00
chore: update deps, adapt lint, use json v2 (#1185)
- Raised go to 1.27 - Adopted json v2 - Sync lint config from gitea - Fixed all issues Co-authored-by: silverwind <[email protected]> Reviewed-on: https://gitea.com/gitea/runner/pulls/1185 Reviewed-by: bircni <[email protected]> Co-authored-by: Renovate Bot <[email protected]>
This commit is contained in:
1 parent
7b4356c746
commit
e30c2fed62
47 files changed
+319
-288
No files matched your search
@@ -351,8 +351,7 @@ func (e *HostEnvironment) exec(ctx context.Context, command []string, cmdline st
|
||||
}
|
||||
err = cmd.Wait()
|
||||
if err != nil {
|
||||
var exitErr *exec.ExitError
|
||||
if errors.As(err, &exitErr) {
|
||||
if exitErr, ok := errors.AsType[*exec.ExitError](err); ok {
|
||||
return ExitCodeError(exitErr.ExitCode())
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user