refactor: move act under internal

The runner is an application, not a library. `act/model` and
`act/exprparser` were the last packages anything outside this repository
consumed and they now live in actionslib, so nothing needs the rest of
`act` to be importable, and keeping it importable invites the coupling
that was just removed.

Import paths only, the files are unchanged.

Assisted-by: Codet:GPT-5.1-Codex
This commit is contained in:
Lunny Xiao
2026-08-07 21:40:48 -07:00
parent b66433e667
commit 825c6af07c
264 changed files with 93 additions and 93 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"os"
"os/signal"
"gitea.com/gitea/runner/act/artifactcache"
"gitea.com/gitea/runner/internal/act/artifactcache"
"gitea.com/gitea/runner/internal/pkg/config"
log "github.com/sirupsen/logrus"
+4 -4
View File
@@ -17,10 +17,10 @@ import (
"strings"
"time"
"gitea.com/gitea/runner/act/artifactcache"
"gitea.com/gitea/runner/act/artifacts"
"gitea.com/gitea/runner/act/common"
"gitea.com/gitea/runner/act/runner"
"gitea.com/gitea/runner/internal/act/artifactcache"
"gitea.com/gitea/runner/internal/act/artifacts"
"gitea.com/gitea/runner/internal/act/common"
"gitea.com/gitea/runner/internal/act/runner"
"gitea.com/gitea/runner/internal/app/run"
"gitea.dev/actionslib/pkg/model"
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"strings"
"time"
"gitea.com/gitea/runner/act/common"
"gitea.com/gitea/runner/internal/act/common"
"gitea.com/gitea/runner/internal/pkg/process"
)
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"strings"
"time"
"gitea.com/gitea/runner/act/common"
"gitea.com/gitea/runner/internal/act/common"
"gitea.com/gitea/runner/internal/pkg/config"
"gitea.com/gitea/runner/internal/pkg/metrics"
"gitea.com/gitea/runner/internal/pkg/process"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"slices"
"strings"
"gitea.com/gitea/runner/act/container"
"gitea.com/gitea/runner/internal/act/container"
log "github.com/sirupsen/logrus"
"golang.org/x/net/http/httpproxy"
+4 -4
View File
@@ -21,10 +21,10 @@ import (
"sync/atomic"
"time"
"gitea.com/gitea/runner/act/artifactcache"
"gitea.com/gitea/runner/act/common"
"gitea.com/gitea/runner/act/container"
"gitea.com/gitea/runner/act/runner"
"gitea.com/gitea/runner/internal/act/artifactcache"
"gitea.com/gitea/runner/internal/act/common"
"gitea.com/gitea/runner/internal/act/container"
"gitea.com/gitea/runner/internal/act/runner"
"gitea.com/gitea/runner/internal/pkg/client"
"gitea.com/gitea/runner/internal/pkg/config"
"gitea.com/gitea/runner/internal/pkg/labels"
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"strings"
"testing"
"gitea.com/gitea/runner/act/artifactcache"
"gitea.com/gitea/runner/internal/act/artifactcache"
"gitea.com/gitea/runner/internal/pkg/config"
"github.com/stretchr/testify/assert"
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"testing"
"gitea.com/gitea/runner/act/runner"
"gitea.com/gitea/runner/internal/act/runner"
clientmocks "gitea.com/gitea/runner/internal/pkg/client/mocks"
"gitea.com/gitea/runner/internal/pkg/config"
"gitea.com/gitea/runner/internal/pkg/ver"