update go imports (#20)

* Replace nektos/act imports with actions-oss/act-cli

* Update go.mod to reference new repo

* Fix goimports "not properly formatted" complaints.

Replacing the imports left some out of alphabetical order.
This commit is contained in:
Steven Edwards
2025-01-27 12:11:12 -05:00
committed by GitHub
parent 1d135cf8d1
commit 70c9e21c85
58 changed files with 113 additions and 113 deletions

View File

@@ -4,8 +4,8 @@ import (
"context"
"io"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/docker/go-connections/nat"
"github.com/nektos/act/pkg/common"
)
// NewContainerInput the input for the New function

View File

@@ -6,10 +6,10 @@ import (
"context"
"strings"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/docker/cli/cli/config"
"github.com/docker/cli/cli/config/credentials"
"github.com/docker/docker/api/types/registry"
"github.com/nektos/act/pkg/common"
)
func LoadDockerAuthConfig(ctx context.Context, image string) (registry.AuthConfig, error) {

View File

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

View File

@@ -5,8 +5,8 @@ package container
import (
"context"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/docker/docker/api/types/network"
"github.com/nektos/act/pkg/common"
)
func NewDockerNetworkCreateExecutor(name string) common.Executor {

View File

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

View File

@@ -35,8 +35,8 @@ import (
"github.com/spf13/pflag"
"golang.org/x/term"
"github.com/nektos/act/pkg/common"
"github.com/nektos/act/pkg/filecollector"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/actions-oss/act-cli/pkg/filecollector"
)
// NewContainer creates a reference to a container
@@ -605,7 +605,7 @@ func (cr *containerReference) exec(cmd []string, env map[string]string, user, wo
case 0:
return nil
case 127:
return fmt.Errorf("exitcode '%d': command not found, please refer to https://github.com/nektos/act/issues/107 for more information", inspectResp.ExitCode)
return fmt.Errorf("exitcode '%d': command not found, please refer to https://github.com/actions-oss/act-cli/issues/107 for more information", inspectResp.ExitCode)
default:
return fmt.Errorf("exitcode '%d': failure", inspectResp.ExitCode)
}

View File

@@ -7,7 +7,7 @@ import (
"runtime"
"github.com/docker/docker/api/types/system"
"github.com/nektos/act/pkg/common"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/pkg/errors"
)

View File

@@ -5,9 +5,9 @@ package container
import (
"context"
"github.com/actions-oss/act-cli/pkg/common"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/volume"
"github.com/nektos/act/pkg/common"
)
func NewDockerVolumeRemoveExecutor(volumeName string, force bool) common.Executor {

View File

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

View File

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