Skip to content

Commit

Permalink
Remove deprecated call
Browse files Browse the repository at this point in the history
This is no longer necessary after Go 1.20
  • Loading branch information
suzaku committed Mar 15, 2024
1 parent efaaa22 commit a74b1c8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmd/krew/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ package cmd
import (
"flag"
"fmt"
"math/rand"
"os"
"strings"
"time"

"github.com/fatih/color"
"github.com/mattn/go-isatty"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"k8s.io/klog/v2"
"math/rand"
"os"
"strings"

"sigs.k8s.io/krew/cmd/krew/cmd/internal"
"sigs.k8s.io/krew/internal/environment"
Expand Down Expand Up @@ -87,7 +85,6 @@ func Execute() {

func init() {
klog.InitFlags(nil)
rand.Seed(time.Now().UnixNano())

pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
_ = flag.CommandLine.Parse([]string{}) // convince pkg/flag we parsed the flags
Expand Down

0 comments on commit a74b1c8

Please sign in to comment.