From f707415bfa7a1bce6de2aaebcf3a33cf720fd1fc Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 16 May 2026 17:49:47 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20act=20package=20paths=20?= =?UTF-8?q?=E2=80=94=20use=20pkg/=20prefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gitea.com/gitea/act organizes packages under pkg/: - exprparser → pkg/exprparser - model → pkg/model - workflowpattern → pkg/workflowpattern Co-Authored-By: Claude Opus 4.6 (1M context) --- modules/actions/jobparser/evaluator.go | 2 +- modules/actions/jobparser/interpeter.go | 4 ++-- modules/actions/jobparser/jobparser.go | 4 ++-- modules/actions/jobparser/model.go | 2 +- modules/actions/jobparser/model_test.go | 2 +- modules/actions/workflows.go | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/actions/jobparser/evaluator.go b/modules/actions/jobparser/evaluator.go index 1c030255da..b320095071 100644 --- a/modules/actions/jobparser/evaluator.go +++ b/modules/actions/jobparser/evaluator.go @@ -9,7 +9,7 @@ import ( "regexp" "strings" - "github.com/nektos/act/exprparser" + "github.com/nektos/act/pkg/exprparser" "go.yaml.in/yaml/v4" ) diff --git a/modules/actions/jobparser/interpeter.go b/modules/actions/jobparser/interpeter.go index 2d35fde163..512b6f02ab 100644 --- a/modules/actions/jobparser/interpeter.go +++ b/modules/actions/jobparser/interpeter.go @@ -4,8 +4,8 @@ package jobparser import ( - "github.com/nektos/act/exprparser" - "github.com/nektos/act/model" + "github.com/nektos/act/pkg/exprparser" + "github.com/nektos/act/pkg/model" "go.yaml.in/yaml/v4" ) diff --git a/modules/actions/jobparser/jobparser.go b/modules/actions/jobparser/jobparser.go index 192f451ec9..16903bc9af 100644 --- a/modules/actions/jobparser/jobparser.go +++ b/modules/actions/jobparser/jobparser.go @@ -9,8 +9,8 @@ import ( "sort" "strings" - "github.com/nektos/act/exprparser" - "github.com/nektos/act/model" + "github.com/nektos/act/pkg/exprparser" + "github.com/nektos/act/pkg/model" "go.yaml.in/yaml/v4" ) diff --git a/modules/actions/jobparser/model.go b/modules/actions/jobparser/model.go index 952caf0772..7132c278e9 100644 --- a/modules/actions/jobparser/model.go +++ b/modules/actions/jobparser/model.go @@ -8,7 +8,7 @@ import ( "errors" "fmt" - "github.com/nektos/act/model" + "github.com/nektos/act/pkg/model" "go.yaml.in/yaml/v4" ) diff --git a/modules/actions/jobparser/model_test.go b/modules/actions/jobparser/model_test.go index 74b10dc4af..d0e8204161 100644 --- a/modules/actions/jobparser/model_test.go +++ b/modules/actions/jobparser/model_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/nektos/act/model" + "github.com/nektos/act/pkg/model" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.yaml.in/yaml/v4" diff --git a/modules/actions/workflows.go b/modules/actions/workflows.go index 61b213b311..ba1aee7d72 100644 --- a/modules/actions/workflows.go +++ b/modules/actions/workflows.go @@ -17,8 +17,8 @@ import ( "code.gitea.io/gitea/modules/util" webhook_module "code.gitea.io/gitea/modules/webhook" - "github.com/nektos/act/model" - "github.com/nektos/act/workflowpattern" + "github.com/nektos/act/pkg/model" + "github.com/nektos/act/pkg/workflowpattern" "go.yaml.in/yaml/v4" )