fix: use nektos/act (→ gitea/act) instead of gitea/runner for workflow parsing

The gitea.com/gitea/runner module path doesn't match its actual module
declaration (gitea.com/gitea/act_runner) and has version compatibility
issues. Switch imports to github.com/nektos/act which is already
replaced by gitea.com/gitea/act v0.261.10 in go.mod — same packages,
proven compatible.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-05-16 17:35:08 -05:00
parent 70ee382ef0
commit eb55ffc0ed
7 changed files with 9 additions and 11 deletions
-2
View File
@@ -10,7 +10,6 @@ godebug x509negativeserial=1
require (
code.gitea.io/actions-proto-go v0.4.1
code.gitea.io/sdk/gitea v0.24.1
gitea.com/gitea/runner v0.4.1
codeberg.org/gusted/mcaptcha v0.0.0-20220723083913-4f3072e1d570
connectrpc.com/connect v1.19.1
gitea.com/go-chi/binding v0.0.0-20260414111559-654cea7ac60a
@@ -298,7 +297,6 @@ ignore (
replace github.com/jaytaylor/html2text => github.com/Necoro/html2text v0.0.0-20250804200300-7bf1ce1c7347 // jaytaylor/html2text is unmaintained
replace github.com/nektos/act => gitea.com/gitea/act v0.261.10 // gitea maintains its own package
replace gitea.com/gitea/runner => gitea.com/gitea/act_runner v0.4.1 // module path mismatch: code imports gitea.com/gitea/runner
replace github.com/urfave/cli/v3 => github.com/urfave/cli/v3 v3.4.1 // v3.6.2 breaks -c flag parsing in help commands
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"regexp"
"strings"
"gitea.com/gitea/runner/act/exprparser"
"github.com/nektos/act/exprparser"
"go.yaml.in/yaml/v4"
)
+2 -2
View File
@@ -4,8 +4,8 @@
package jobparser
import (
"gitea.com/gitea/runner/act/exprparser"
"gitea.com/gitea/runner/act/model"
"github.com/nektos/act/exprparser"
"github.com/nektos/act/model"
"go.yaml.in/yaml/v4"
)
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"sort"
"strings"
"gitea.com/gitea/runner/act/exprparser"
"gitea.com/gitea/runner/act/model"
"github.com/nektos/act/exprparser"
"github.com/nektos/act/model"
"go.yaml.in/yaml/v4"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"errors"
"fmt"
"gitea.com/gitea/runner/act/model"
"github.com/nektos/act/model"
"go.yaml.in/yaml/v4"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"gitea.com/gitea/runner/act/model"
"github.com/nektos/act/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.yaml.in/yaml/v4"
+2 -2
View File
@@ -17,8 +17,8 @@ import (
"code.gitea.io/gitea/modules/util"
webhook_module "code.gitea.io/gitea/modules/webhook"
"gitea.com/gitea/runner/act/model"
"gitea.com/gitea/runner/act/workflowpattern"
"github.com/nektos/act/model"
"github.com/nektos/act/workflowpattern"
"go.yaml.in/yaml/v4"
)