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

@@ -20,7 +20,7 @@ import (
"github.com/timshannon/bolthold"
"go.etcd.io/bbolt"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
const (

View File

@@ -15,7 +15,7 @@ import (
"github.com/julienschmidt/httprouter"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
type FileContainerResourceURL struct {

View File

@@ -17,8 +17,8 @@ import (
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/actions-oss/act-cli/pkg/model"
"github.com/actions-oss/act-cli/pkg/runner"
"gitea.com/gitea/act_runner/pkg/model"
"gitea.com/gitea/act_runner/pkg/runner"
)
type writableMapFile struct {

View File

@@ -19,7 +19,7 @@ import (
"github.com/mattn/go-isatty"
log "github.com/sirupsen/logrus"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
var (

View File

@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
func TestFindGitSlug(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"io"
"os"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/docker/go-connections/nat"
"golang.org/x/term"
)

View File

@@ -6,7 +6,7 @@ import (
"context"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/docker/cli/cli/config"
"github.com/docker/cli/cli/config/credentials"
"github.com/docker/docker/api/types/registry"

View File

@@ -15,7 +15,7 @@ import (
"github.com/moby/patternmatcher"
"github.com/moby/patternmatcher/ignorefile"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
// NewDockerBuildExecutor function to create a run executor for the container

View File

@@ -5,7 +5,7 @@ package container
import (
"context"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/docker/docker/api/types/network"
)

View File

@@ -13,7 +13,7 @@ import (
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/api/types/registry"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
// NewDockerPullExecutor function to create a run executor for the container

View File

@@ -35,8 +35,8 @@ import (
specs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/spf13/pflag"
"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"
)
// NewContainer creates a reference to a container

View File

@@ -6,8 +6,8 @@ import (
"context"
"runtime"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/docker/docker/api/types/system"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/pkg/errors"
)

View File

@@ -5,7 +5,7 @@ package container
import (
"context"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/volume"
)

View File

@@ -20,9 +20,9 @@ import (
"github.com/go-git/go-git/v5/plumbing/format/gitignore"
"golang.org/x/term"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/filecollector"
"github.com/actions-oss/act-cli/pkg/lookpath"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/filecollector"
"gitea.com/gitea/act_runner/pkg/lookpath"
)
type HostEnvironment struct {

View File

@@ -8,7 +8,7 @@ import (
"io"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
)
func parseEnvFile(e Container, srcPath string, env *map[string]string) common.Executor {

View File

@@ -1,6 +1,6 @@
package exprparser
import "github.com/actions-oss/act-cli/pkg/model"
import "gitea.com/gitea/act_runner/pkg/model"
func (impl *interperterImpl) getNeedsTransitive(job *model.Job) []string {
needs := job.Needs()

View File

@@ -7,9 +7,9 @@ import (
"reflect"
"strings"
eval "github.com/actions-oss/act-cli/internal/eval/v2"
exprparser "github.com/actions-oss/act-cli/internal/expr"
"github.com/actions-oss/act-cli/pkg/model"
eval "gitea.com/gitea/act_runner/internal/eval/v2"
exprparser "gitea.com/gitea/act_runner/internal/expr"
"gitea.com/gitea/act_runner/pkg/model"
)
type EvaluationEnvironment struct {

View File

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

View File

@@ -5,7 +5,7 @@ import (
"io"
"strings"
"github.com/actions-oss/act-cli/pkg/schema"
"gitea.com/gitea/act_runner/pkg/schema"
"gopkg.in/yaml.v3"
)

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/common/git"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/common/git"
)
type GithubContext struct {

View File

@@ -9,8 +9,8 @@ import (
"strconv"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/schema"
"gitea.com/gitea/act_runner/pkg/common"
"gitea.com/gitea/act_runner/pkg/schema"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
)

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"

View File

@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
exprparser "github.com/actions-oss/act-cli/internal/expr"
exprparser "gitea.com/gitea/act_runner/internal/expr"
"gopkg.in/yaml.v3"
)

View File

@@ -8,8 +8,8 @@ import (
"path/filepath"
"strings"
"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/kballard/go-shellquote"
)

View File

@@ -13,7 +13,7 @@ import (
"strings"
"syscall"
"github.com/actions-oss/act-cli/pkg/common"
"gitea.com/gitea/act_runner/pkg/common"
"github.com/avast/retry-go"
"golang.org/x/crypto/ssh"
)