update import path

This commit is contained in:
Christopher Homberger
2026-02-22 20:54:58 +01:00
parent 9fd95d203f
commit 3413919161
75 changed files with 233 additions and 164 deletions

View File

@@ -13,9 +13,9 @@ import (
"github.com/kballard/go-shellquote"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/model"
)
type actionStep interface {

View File

@@ -13,7 +13,7 @@ import (
"strings"
"time"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
git "github.com/go-git/go-git/v5"
config "github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing"

View File

@@ -5,7 +5,7 @@ import (
"io"
"path"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
git "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
)

View File

@@ -6,8 +6,8 @@ import (
"regexp"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
func evaluateCompositeInputAndEnv(ctx context.Context, parent *RunContext, step actionStep) map[string]string {

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)

View File

@@ -5,7 +5,7 @@ import (
"regexp"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/sirupsen/logrus"
)

View File

@@ -10,8 +10,8 @@ import (
"github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
func TestSetEnv(t *testing.T) {

View File

@@ -4,8 +4,8 @@ import (
"context"
"io"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"github.com/stretchr/testify/mock"
)

View File

@@ -12,10 +12,10 @@ import (
_ "embed"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/exprparser"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/exprparser"
"gitea.com/gitea/act_runner/pkg/model"
"gopkg.in/yaml.v3"
)

View File

@@ -8,8 +8,8 @@ import (
"sort"
"testing"
"github.com/actions-oss/act-cli/pkg/exprparser"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/exprparser"
"gitea.com/gitea/act_runner/pkg/model"
assert "github.com/stretchr/testify/assert"
yaml "gopkg.in/yaml.v3"
)

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
type jobInfo interface {

View File

@@ -6,9 +6,9 @@ import (
"io"
"testing"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)

View File

@@ -12,8 +12,8 @@ import (
"path/filepath"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/filecollector"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/filecollector"
)
type LocalRepositoryCache struct {

View File

@@ -9,7 +9,7 @@ import (
"strings"
"sync"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/sirupsen/logrus"
"golang.org/x/term"

View File

@@ -7,8 +7,8 @@ import (
"path"
"regexp"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
func newLocalReusableWorkflowExecutor(rc *RunContext) common.Executor {

View File

@@ -20,10 +20,10 @@ import (
"strings"
"time"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/exprparser"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/exprparser"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/docker/go-connections/nat"
"github.com/opencontainers/selinux/go-selinux"
"github.com/sirupsen/logrus"

View File

@@ -10,9 +10,9 @@ import (
"path/filepath"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/tart"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/tart"
)
func (rc *RunContext) startTartEnvironment() common.Executor {

View File

@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
func (rc *RunContext) startTartEnvironment() common.Executor {

View File

@@ -10,8 +10,8 @@ import (
"strings"
"testing"
"github.com/actions-oss/act-cli/pkg/exprparser"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/exprparser"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/golang-jwt/jwt/v5"
log "github.com/sirupsen/logrus"

View File

@@ -8,8 +8,8 @@ import (
"regexp"
"runtime"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
docker_container "github.com/docker/docker/api/types/container"
log "github.com/sirupsen/logrus"
"golang.org/x/sync/semaphore"

View File

@@ -20,8 +20,8 @@ import (
assert "github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
var (

View File

@@ -11,10 +11,10 @@ import (
"strings"
"time"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/exprparser"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/exprparser"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/sirupsen/logrus"
)

View File

@@ -10,8 +10,8 @@ import (
"os"
"path"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
type stepActionLocal struct {

View File

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"gopkg.in/yaml.v3"

View File

@@ -11,8 +11,8 @@ import (
"regexp"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
type stepActionRemote struct {

View File

@@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/mock"
"gopkg.in/yaml.v3"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
)
type stepActionRemoteMocks struct {

View File

@@ -5,9 +5,9 @@ import (
"fmt"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/kballard/go-shellquote"
)

View File

@@ -6,8 +6,8 @@ import (
"io"
"testing"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)

View File

@@ -3,7 +3,7 @@ package runner
import (
"fmt"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/model"
)
type stepFactory interface {

View File

@@ -3,7 +3,7 @@ package runner
import (
"testing"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/model"
"github.com/stretchr/testify/assert"
)

View File

@@ -8,10 +8,10 @@ import (
"github.com/kballard/go-shellquote"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/lookpath"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/lookpath"
"gitea.com/gitea/act_runner/pkg/model"
)
type stepRun struct {

View File

@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/actions-oss/act-cli/pkg/container"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/container"
"gitea.com/gitea/act_runner/pkg/model"
)
func TestStepRun(t *testing.T) {

View File

@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/model"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/model"
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"