mirror of
https://github.com/lingble/talos.git
synced 2025-12-02 05:43:46 +00:00
chore: fix formatting of imports
This PR cleans up the formatting for various package imports as they were causing the linter to throw errors. Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
This commit is contained in:
committed by
Spencer Smith
parent
1cbbf9cd5a
commit
fa82454be4
@@ -15,7 +15,7 @@ RUN ["/toolchain/bin/ln", "-svf", "/toolchain/etc/ssl", "/etc/ssl"]
|
||||
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b /toolchain/bin v1.23.6
|
||||
RUN cd $(mktemp -d) \
|
||||
&& go mod init tmp \
|
||||
&& go get mvdan.cc/gofumpt/gofumports \
|
||||
&& go get mvdan.cc/gofumpt/gofumports@aaa7156f4122b1055c466e26e77812fa32bac1d9 \
|
||||
&& mv /go/bin/gofumports /toolchain/go/bin/gofumports
|
||||
RUN curl -sfL https://github.com/uber/prototool/releases/download/v1.8.0/prototool-Linux-x86_64.tar.gz | tar -xz --strip-components=2 -C /toolchain/bin prototool/bin/prototool
|
||||
COPY ./hack/docgen /go/src/github.com/talos-systems/docgen
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
stdlibx509 "crypto/x509"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@@ -14,6 +13,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
stdlibx509 "crypto/x509"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/talos-systems/talos/cmd/osctl/pkg/helpers"
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
package provider
|
||||
|
||||
import (
|
||||
stdlibtls "crypto/tls"
|
||||
"fmt"
|
||||
|
||||
stdlibtls "crypto/tls"
|
||||
stdlibnet "net"
|
||||
|
||||
"github.com/talos-systems/talos/internal/pkg/runtime"
|
||||
|
||||
@@ -8,9 +8,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
goruntime "runtime"
|
||||
"time"
|
||||
|
||||
goruntime "runtime"
|
||||
|
||||
"github.com/hashicorp/go-multierror"
|
||||
|
||||
"github.com/talos-systems/talos/internal/pkg/kmsg"
|
||||
|
||||
@@ -9,9 +9,10 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
stdlibruntime "runtime"
|
||||
"sync"
|
||||
|
||||
stdlibruntime "runtime"
|
||||
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/system/events"
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/system/log"
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/system/runner"
|
||||
|
||||
@@ -6,17 +6,18 @@ package services
|
||||
|
||||
import (
|
||||
"context"
|
||||
stdlibx509 "crypto/x509"
|
||||
"encoding/pem"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
stdlibnet "net"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
stdlibx509 "crypto/x509"
|
||||
stdlibnet "net"
|
||||
|
||||
containerdapi "github.com/containerd/containerd"
|
||||
"github.com/containerd/containerd/namespaces"
|
||||
"github.com/containerd/containerd/oci"
|
||||
|
||||
@@ -7,6 +7,7 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"log"
|
||||
|
||||
stdlibnet "net"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
|
||||
@@ -6,10 +6,11 @@ package machine
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
stdx509 "crypto/x509"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
stdx509 "crypto/x509"
|
||||
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/crypto/x509"
|
||||
|
||||
@@ -7,13 +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/talos/internal/pkg/cis"
|
||||
"github.com/talos-systems/talos/pkg/config/machine"
|
||||
v1alpha1 "github.com/talos-systems/talos/pkg/config/types/v1alpha1"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
package kubernetes
|
||||
|
||||
import (
|
||||
stdlibx509 "crypto/x509"
|
||||
"encoding/json"
|
||||
"encoding/pem"
|
||||
"errors"
|
||||
@@ -15,6 +14,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
stdlibx509 "crypto/x509"
|
||||
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
policy "k8s.io/api/policy/v1beta1"
|
||||
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
package startup
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
|
||||
cryptorand "crypto/rand"
|
||||
"encoding/binary"
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
// RandSeed default math/rand PRNG.
|
||||
|
||||
Reference in New Issue
Block a user