chore: enable gci linter

Fixes were applied automatically.

Import ordering might be questionable, but it's strict:

* stdlib
* other packages
* same package imports

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov 2020-11-09 17:55:46 +03:00 committed by talos-bot
parent 8560fb9662
commit a2efa44663
59 changed files with 68 additions and 135 deletions

View File

@ -108,6 +108,8 @@ linters-settings:
simple: true
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: false # Report preallocation suggestions on for loops, false by default
gci:
local-prefixes: github.com/talos-systems/talos
linters:
enable-all: true
@ -122,7 +124,6 @@ linters:
- gomnd
- goerr113
- nestif
- gci
- exhaustivestruct
- errorlint
- wrapcheck

View File

@ -17,13 +17,12 @@ import (
"strings"
"time"
"github.com/talos-systems/go-retry/retry"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-blockdevice/blockdevice"
"github.com/talos-systems/go-blockdevice/blockdevice/table"
"github.com/talos-systems/go-blockdevice/blockdevice/table/gpt/partition"
"github.com/talos-systems/go-blockdevice/blockdevice/util"
"github.com/talos-systems/go-retry/retry"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/pkg/mount"

View File

@ -14,7 +14,6 @@ import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/talos-systems/go-blockdevice/blockdevice"
"github.com/talos-systems/go-blockdevice/blockdevice/loopback"
"github.com/talos-systems/go-blockdevice/blockdevice/table/gpt/partition"

View File

@ -20,9 +20,8 @@ import (
humanize "github.com/dustin/go-humanize"
"github.com/spf13/cobra"
"k8s.io/client-go/tools/clientcmd"
talosnet "github.com/talos-systems/net"
"k8s.io/client-go/tools/clientcmd"
"github.com/talos-systems/talos/cmd/talosctl/pkg/mgmt/helpers"
"github.com/talos-systems/talos/internal/pkg/kubeconfig"

View File

@ -5,6 +5,7 @@
package mgmt
import (
stdlibx509 "crypto/x509"
"encoding/pem"
"fmt"
"io/ioutil"
@ -13,10 +14,7 @@ import (
"strings"
"time"
stdlibx509 "crypto/x509"
"github.com/spf13/cobra"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/talos/pkg/cli"

View File

@ -8,7 +8,6 @@ import (
"fmt"
"github.com/spf13/cobra"
"github.com/talos-systems/go-loadbalancer/loadbalancer"
)

View File

@ -11,12 +11,11 @@ import (
"os"
"text/tabwriter"
humanize "github.com/dustin/go-humanize"
"github.com/spf13/cobra"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
humanize "github.com/dustin/go-humanize"
machineapi "github.com/talos-systems/talos/pkg/machinery/api/machine"
"github.com/talos-systems/talos/pkg/machinery/client"
)

View File

@ -14,10 +14,9 @@ import (
"strings"
"sync"
"k8s.io/client-go/tools/clientcmd"
"github.com/mattn/go-isatty"
"github.com/spf13/cobra"
"k8s.io/client-go/tools/clientcmd"
"github.com/talos-systems/talos/cmd/talosctl/pkg/talos/helpers"
"github.com/talos-systems/talos/internal/pkg/kubeconfig"

View File

@ -8,9 +8,8 @@ import (
"os"
"testing"
yaml "gopkg.in/yaml.v3"
"github.com/stretchr/testify/assert"
yaml "gopkg.in/yaml.v3"
"github.com/talos-systems/talos/cmd/talosctl/pkg/talos/helpers"
)

View File

@ -10,14 +10,13 @@ import (
"sync"
"github.com/talos-systems/grpc-proxy/proxy"
"github.com/talos-systems/net"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/metadata"
"google.golang.org/protobuf/encoding/protowire"
"google.golang.org/protobuf/proto"
"github.com/talos-systems/net"
"github.com/talos-systems/talos/pkg/machinery/api/common"
"github.com/talos-systems/talos/pkg/machinery/constants"
)

View File

@ -6,14 +6,12 @@
package provider
import (
"fmt"
stdlibtls "crypto/tls"
"fmt"
stdlibnet "net"
"github.com/talos-systems/net"
"github.com/talos-systems/crypto/tls"
"github.com/talos-systems/net"
"github.com/talos-systems/talos/pkg/grpc/gen"
"github.com/talos-systems/talos/pkg/machinery/config"

View File

@ -23,7 +23,6 @@ import (
"github.com/hashicorp/go-multierror"
"github.com/kubernetes-sigs/bootkube/pkg/tlsutil"
"github.com/talos-systems/bootkube-plugin/pkg/asset"
tnet "github.com/talos-systems/net"
"github.com/talos-systems/talos/internal/app/bootkube/images"

View File

@ -13,9 +13,8 @@ import (
"syscall"
"time"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-procfs/procfs"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/internal/pkg/kmsg"
"github.com/talos-systems/talos/internal/pkg/mount"

View File

@ -17,9 +17,8 @@ import (
"github.com/containerd/containerd/namespaces"
"github.com/containerd/containerd/oci"
"github.com/opencontainers/runtime-spec/specs-go"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-procfs/procfs"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/internal/pkg/containers/image"
"github.com/talos-systems/talos/internal/pkg/kmsg"

View File

@ -9,12 +9,11 @@ import (
"fmt"
"strings"
clusterapi "github.com/talos-systems/talos/pkg/machinery/api/cluster"
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
"github.com/talos-systems/talos/pkg/cluster"
"github.com/talos-systems/talos/pkg/cluster/check"
"github.com/talos-systems/talos/pkg/conditions"
clusterapi "github.com/talos-systems/talos/pkg/machinery/api/cluster"
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
)
// HealthCheck implements the cluster.ClusterServer interface.

View File

@ -16,11 +16,10 @@ import (
"syscall"
"time"
"github.com/talos-systems/go-procfs/procfs"
"golang.org/x/net/http/httpproxy"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
v1alpha1runtime "github.com/talos-systems/talos/internal/app/machined/pkg/runtime/v1alpha1"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime/v1alpha1/bootloader"

View File

@ -16,12 +16,12 @@ import (
"regexp"
"text/template"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime/v1alpha1/bootloader"
"github.com/talos-systems/talos/pkg/cmd"
"github.com/talos-systems/talos/pkg/machinery/constants"
"golang.org/x/sys/unix"
)
const syslinuxCfgTpl = `DEFAULT {{ .Default }}

View File

@ -16,7 +16,6 @@ import (
"time"
"github.com/fullsailor/pkcs7"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"

View File

@ -13,12 +13,10 @@ import (
"net/url"
"path/filepath"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-blockdevice/blockdevice/probe"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/go-smbios/smbios"
"github.com/talos-systems/go-blockdevice/blockdevice/probe"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/errors"

View File

@ -14,11 +14,10 @@ import (
"log"
"net"
"github.com/talos-systems/go-procfs/procfs"
"github.com/vmware/vmw-guestinfo/rpcvmx"
"github.com/vmware/vmw-guestinfo/vmcheck"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/pkg/machinery/constants"
)

View File

@ -23,17 +23,15 @@ import (
"text/template"
"time"
"go.etcd.io/etcd/clientv3"
"golang.org/x/sys/unix"
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1alpha2"
multierror "github.com/hashicorp/go-multierror"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/go-retry/retry"
"github.com/talos-systems/go-blockdevice/blockdevice"
"github.com/talos-systems/go-blockdevice/blockdevice/table"
"github.com/talos-systems/go-blockdevice/blockdevice/util"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/go-retry/retry"
"go.etcd.io/etcd/clientv3"
"golang.org/x/sys/unix"
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1alpha2"
installer "github.com/talos-systems/talos/cmd/installer/pkg/install"
"github.com/talos-systems/talos/internal/app/machined/internal/install"

View File

@ -9,9 +9,8 @@ import (
"fmt"
"io"
"os"
"sync"
stdlibruntime "runtime"
"sync"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/system/events"

View File

@ -17,7 +17,6 @@ import (
"github.com/containerd/containerd/oci"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/talos-systems/go-retry/retry"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"

View File

@ -15,11 +15,10 @@ import (
"github.com/containerd/containerd/oci"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/talos-systems/go-retry/retry"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/talos-systems/go-retry/retry"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/system/events"
"github.com/talos-systems/talos/internal/app/machined/pkg/system/runner"

View File

@ -6,28 +6,26 @@ package services
import (
"context"
stdlibx509 "crypto/x509"
"encoding/pem"
"errors"
"fmt"
"io"
"io/ioutil"
stdlibnet "net"
"os"
goruntime "runtime"
"strings"
"time"
stdlibx509 "crypto/x509"
stdlibnet "net"
containerdapi "github.com/containerd/containerd"
"github.com/containerd/containerd/namespaces"
"github.com/containerd/containerd/oci"
specs "github.com/opencontainers/runtime-spec/specs-go"
"go.etcd.io/etcd/clientv3"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/go-retry/retry"
"github.com/talos-systems/net"
"go.etcd.io/etcd/clientv3"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime/v1alpha1/bootloader"

View File

@ -24,12 +24,11 @@ import (
criconstants "github.com/containerd/cri/pkg/constants"
cni "github.com/containerd/go-cni"
specs "github.com/opencontainers/runtime-spec/specs-go"
tnet "github.com/talos-systems/net"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/serializer/json"
kubeletconfig "k8s.io/kubelet/config/v1beta1"
tnet "github.com/talos-systems/net"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/system/events"
"github.com/talos-systems/talos/internal/app/machined/pkg/system/health"

View File

@ -14,9 +14,8 @@ import (
"github.com/insomniacslk/dhcp/dhcpv4"
"github.com/insomniacslk/dhcp/dhcpv4/nclient4"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-procfs/procfs"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/pkg/machinery/config"
"github.com/talos-systems/talos/pkg/machinery/constants"

View File

@ -14,9 +14,8 @@ import (
"text/template"
"github.com/jsimonetti/rtnetlink"
"golang.org/x/sys/unix"
talosnet "github.com/talos-systems/net"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/pkg/machinery/config"
)

View File

@ -17,10 +17,9 @@ import (
"sync"
"time"
"golang.org/x/sys/unix"
multierror "github.com/hashicorp/go-multierror"
"github.com/talos-systems/go-procfs/procfs"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime/v1alpha1/platform"

View File

@ -20,11 +20,10 @@ import (
"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/rtnl"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
"google.golang.org/protobuf/proto"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/go-retry/retry"
"golang.org/x/sys/unix"
"google.golang.org/protobuf/proto"
"github.com/talos-systems/talos/internal/app/networkd/pkg/address"
"github.com/talos-systems/talos/pkg/machinery/constants"

View File

@ -7,9 +7,8 @@ package main
import (
"log"
"google.golang.org/grpc"
"github.com/talos-systems/grpc-proxy/proxy"
"google.golang.org/grpc"
"github.com/talos-systems/talos/internal/app/routerd/pkg/director"
"github.com/talos-systems/talos/pkg/grpc/factory"

View File

@ -10,11 +10,10 @@ import (
"fmt"
"strings"
"github.com/talos-systems/grpc-proxy/proxy"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/talos-systems/grpc-proxy/proxy"
)
// Router wraps grpc-proxy StreamDirector.

View File

@ -9,9 +9,8 @@ import (
"testing"
"github.com/stretchr/testify/suite"
"google.golang.org/grpc/metadata"
"github.com/talos-systems/grpc-proxy/proxy"
"google.golang.org/grpc/metadata"
"github.com/talos-systems/talos/internal/app/routerd/pkg/director"
)

View File

@ -11,9 +11,8 @@ import (
"os"
"path"
"google.golang.org/grpc"
"github.com/talos-systems/crypto/x509"
"google.golang.org/grpc"
securityapi "github.com/talos-systems/talos/pkg/machinery/api/security"
"github.com/talos-systems/talos/pkg/machinery/config"

View File

@ -7,16 +7,13 @@ package main
import (
"flag"
"log"
stdlibnet "net"
"github.com/talos-systems/crypto/tls"
"github.com/talos-systems/net"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/talos-systems/net"
"github.com/talos-systems/crypto/tls"
"github.com/talos-systems/talos/internal/app/trustd/internal/reg"
"github.com/talos-systems/talos/pkg/grpc/factory"
"github.com/talos-systems/talos/pkg/grpc/gen"

View File

@ -8,7 +8,6 @@ import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/talos/internal/pkg/containers/cri/containerd"

View File

@ -12,16 +12,14 @@ import (
"os"
"time"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/net"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/etcdserver/api/v3rpc/rpctypes"
"go.etcd.io/etcd/etcdserver/etcdserverpb"
"go.etcd.io/etcd/pkg/transport"
"google.golang.org/grpc"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/net"
"github.com/talos-systems/talos/internal/app/machined/pkg/system"
"github.com/talos-systems/talos/pkg/kubernetes"
"github.com/talos-systems/talos/pkg/machinery/config"

View File

@ -8,7 +8,6 @@ import (
"fmt"
"github.com/hashicorp/go-multierror"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/talos/pkg/sysctl"

View File

@ -12,9 +12,8 @@ import (
"time"
"github.com/stretchr/testify/suite"
"k8s.io/client-go/tools/clientcmd"
"github.com/talos-systems/crypto/x509"
"k8s.io/client-go/tools/clientcmd"
"github.com/talos-systems/talos/internal/pkg/kubeconfig"
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"

View File

@ -13,11 +13,10 @@ import (
"strings"
"time"
"github.com/talos-systems/go-retry/retry"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-blockdevice/blockdevice"
"github.com/talos-systems/go-blockdevice/blockdevice/util"
"github.com/talos-systems/go-retry/retry"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/pkg/machinery/constants"
"github.com/talos-systems/talos/pkg/makefs"

View File

@ -8,9 +8,8 @@ import (
"fmt"
"log"
"golang.org/x/sys/unix"
"github.com/talos-systems/go-blockdevice/blockdevice/probe"
"golang.org/x/sys/unix"
"github.com/talos-systems/talos/pkg/machinery/constants"
)

View File

@ -11,6 +11,7 @@ import (
"strings"
"time"
"github.com/talos-systems/go-retry/retry"
appsv1 "k8s.io/api/apps/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@ -18,8 +19,6 @@ import (
"k8s.io/apimachinery/pkg/util/strategicpatch"
"k8s.io/client-go/kubernetes"
"github.com/talos-systems/go-retry/retry"
"github.com/talos-systems/talos/pkg/cluster"
"github.com/talos-systems/talos/pkg/machinery/constants"
)

View File

@ -15,10 +15,9 @@ import (
"path/filepath"
"strconv"
"google.golang.org/grpc"
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
grpc_recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
"google.golang.org/grpc"
grpclog "github.com/talos-systems/talos/pkg/grpc/middleware/log"
)

View File

@ -11,9 +11,8 @@ import (
"time"
"github.com/hashicorp/go-multierror"
"google.golang.org/grpc"
"github.com/talos-systems/crypto/x509"
"google.golang.org/grpc"
"github.com/talos-systems/talos/pkg/grpc/middleware/auth/basic"
securityapi "github.com/talos-systems/talos/pkg/machinery/api/security"

View File

@ -8,10 +8,9 @@ import (
"crypto/tls"
"fmt"
"github.com/talos-systems/net"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/talos-systems/net"
)
// Credentials describes an authorization method.

View File

@ -9,9 +9,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/metadata"
"github.com/talos-systems/grpc-proxy/proxy"
"google.golang.org/grpc/metadata"
"github.com/talos-systems/talos/pkg/grpc/proxy/backend"
)

View File

@ -6,6 +6,7 @@ package kubernetes
import (
"context"
stdlibx509 "crypto/x509"
"encoding/json"
"encoding/pem"
"errors"
@ -15,8 +16,8 @@ import (
"sync"
"time"
stdlibx509 "crypto/x509"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/go-retry/retry"
corev1 "k8s.io/api/core/v1"
policy "k8s.io/api/policy/v1beta1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
@ -28,9 +29,6 @@ import (
restclient "k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/go-retry/retry"
"github.com/talos-systems/talos/pkg/machinery/constants"
)

View File

@ -19,16 +19,14 @@ import (
"time"
"github.com/golang/protobuf/ptypes/empty"
grpctls "github.com/talos-systems/crypto/tls"
"github.com/talos-systems/net"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/durationpb"
grpctls "github.com/talos-systems/crypto/tls"
"github.com/talos-systems/net"
"github.com/talos-systems/talos/pkg/grpc/middleware/auth/basic"
clusterapi "github.com/talos-systems/talos/pkg/machinery/api/cluster"
"github.com/talos-systems/talos/pkg/machinery/api/common"

View File

@ -9,9 +9,8 @@ import (
"math/rand"
"strings"
"google.golang.org/grpc/resolver"
"github.com/talos-systems/net"
"google.golang.org/grpc/resolver"
"github.com/talos-systems/talos/pkg/machinery/constants"
)

View File

@ -7,9 +7,8 @@ package encoder_test
import (
"testing"
yaml "gopkg.in/yaml.v3"
"github.com/stretchr/testify/suite"
yaml "gopkg.in/yaml.v3"
"github.com/talos-systems/talos/pkg/machinery/config/encoder"
)

View File

@ -7,16 +7,14 @@ package generate
import (
"bufio"
"crypto/rand"
stdlibx509 "crypto/x509"
"encoding/pem"
"errors"
"net"
"net/url"
"time"
stdlibx509 "crypto/x509"
"github.com/talos-systems/crypto/x509"
tnet "github.com/talos-systems/net"
"github.com/talos-systems/talos/pkg/machinery/config/internal/cis"

View File

@ -15,7 +15,6 @@ import (
"time"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/talos-systems/crypto/x509"
"github.com/talos-systems/talos/pkg/machinery/config"

View File

@ -13,9 +13,8 @@ import (
"os"
"strconv"
"github.com/hashicorp/go-multierror"
valid "github.com/asaskevich/govalidator"
"github.com/hashicorp/go-multierror"
talosnet "github.com/talos-systems/net"
"github.com/talos-systems/talos/pkg/machinery/config"

View File

@ -18,9 +18,8 @@ import (
firecracker "github.com/firecracker-microvm/firecracker-go-sdk"
models "github.com/firecracker-microvm/firecracker-go-sdk/client/models"
multierror "github.com/hashicorp/go-multierror"
"k8s.io/apimachinery/pkg/util/json"
"github.com/talos-systems/go-procfs/procfs"
"k8s.io/apimachinery/pkg/util/json"
"github.com/talos-systems/talos/pkg/machinery/constants"
"github.com/talos-systems/talos/pkg/provision"

View File

@ -19,7 +19,6 @@ import (
"github.com/containernetworking/plugins/pkg/ns"
"github.com/containernetworking/plugins/pkg/testutils"
"github.com/google/uuid"
"github.com/talos-systems/go-blockdevice/blockdevice/table/gpt"
"github.com/talos-systems/talos/pkg/provision"

View File

@ -20,13 +20,12 @@ import (
"github.com/google/uuid"
multierror "github.com/hashicorp/go-multierror"
"github.com/talos-systems/go-procfs/procfs"
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
"github.com/talos-systems/talos/pkg/machinery/constants"
"github.com/talos-systems/talos/pkg/provision"
"github.com/talos-systems/talos/pkg/provision/providers/vm"
"github.com/talos-systems/go-procfs/procfs"
)
//nolint: gocyclo

View File

@ -18,7 +18,6 @@ import (
"github.com/containernetworking/plugins/pkg/testutils"
"github.com/google/uuid"
"github.com/jsimonetti/rtnetlink"
talosnet "github.com/talos-systems/net"
"github.com/talos-systems/talos/pkg/provision"

View File

@ -9,9 +9,8 @@ import (
"os"
"path/filepath"
yaml "gopkg.in/yaml.v3"
"github.com/containernetworking/cni/libcni"
yaml "gopkg.in/yaml.v3"
"github.com/talos-systems/talos/pkg/provision"
)

View File

@ -5,11 +5,10 @@
package startup
import (
cryptorand "crypto/rand"
"encoding/binary"
"fmt"
"math/rand"
cryptorand "crypto/rand"
)
// RandSeed default math/rand PRNG.