Skip to content

Commit

Permalink
upgrade all packages and migrate to new APIs (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Sep 13, 2023
1 parent 7a904a2 commit 2e5e05a
Show file tree
Hide file tree
Showing 45 changed files with 9,575 additions and 2,230 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.19.x, 1.20.x]
go-version: [1.20.x, 1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.20.x
go-version: 1.21.x
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@53acad1befee355d46f71cccf6ab4d885eb4f77f
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 1.20.x ]
go-version: [ 1.21.1 ]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project_name: warp
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy -compat=1.17
- go mod tidy -compat=1.19
builds:
-
goos:
Expand Down
11,270 changes: 9,204 additions & 2,066 deletions CREDITS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"time"

"github.com/klauspost/compress/zstd"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/aggregate"
"github.com/minio/warp/pkg/bench"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/klauspost/compress/zstd"
"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/api"
"github.com/minio/warp/pkg/aggregate"
"github.com/minio/warp/pkg/bench"
Expand Down
2 changes: 1 addition & 1 deletion cli/benchclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"time"

"github.com/minio/cli"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
"github.com/minio/websocket"
)
Expand Down
4 changes: 2 additions & 2 deletions cli/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
"github.com/cheggaaa/pb"
"github.com/klauspost/compress/zstd"
"github.com/minio/cli"
"github.com/minio/madmin-go/v2"
"github.com/minio/madmin-go/v3"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/api"
"github.com/minio/warp/pkg/bench"
)
Expand Down
6 changes: 3 additions & 3 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
"github.com/cheggaaa/pb"
"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/trie"
"github.com/minio/pkg/words"
"github.com/minio/pkg/v2/console"
"github.com/minio/pkg/v2/trie"
"github.com/minio/pkg/v2/words"
"github.com/minio/warp/pkg"
completeinstall "github.com/posener/complete/cmd/install"
)
Expand Down
8 changes: 4 additions & 4 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ import (
"time"

"github.com/minio/cli"
"github.com/minio/madmin-go/v2"
"github.com/minio/madmin-go/v3"
"github.com/minio/mc/pkg/probe"
md5simd "github.com/minio/md5-simd"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
"github.com/minio/pkg/certs"
"github.com/minio/pkg/console"
"github.com/minio/pkg/ellipses"
"github.com/minio/pkg/v2/certs"
"github.com/minio/pkg/v2/console"
"github.com/minio/pkg/v2/ellipses"
"github.com/minio/warp/pkg"
"golang.org/x/net/http2"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/clientmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
)

var clientFlags = []cli.Flag{}
Expand Down
2 changes: 1 addition & 1 deletion cli/cmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/klauspost/compress/zstd"
"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cli

import (
"github.com/minio/cli"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/fanout.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cli

import (
"github.com/minio/cli"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
"github.com/minio/warp/pkg/generator"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package cli
import (
"github.com/minio/cli"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cli

import (
"github.com/minio/cli"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/klauspost/compress/zstd"
"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/mixed.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/multipart.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/minio/cli"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/cheggaaa/pb"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
)

// causeMessage container for golang error messages
Expand Down
2 changes: 1 addition & 1 deletion cli/progress-bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/cheggaaa/pb"
"github.com/fatih/color"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
)

// progress extender.
Expand Down
2 changes: 1 addition & 1 deletion cli/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package cli
import (
"github.com/minio/cli"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/retention.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cli

import (
"github.com/minio/cli"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/rlimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package cli
import (
"runtime/debug"

"github.com/minio/pkg/sys"
"github.com/minio/pkg/v2/sys"
)

func setMaxResources() (err error) {
Expand Down
2 changes: 1 addition & 1 deletion cli/snowball.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package cli
import (
"github.com/minio/cli"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/stat.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package cli
import (
"github.com/minio/cli"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/versioned.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/minio/cli"
"github.com/minio/mc/pkg/probe"
"github.com/minio/minio-go/v7"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"time"

"github.com/minio/cli"
"github.com/minio/pkg/console"
"github.com/minio/pkg/v2/console"
"github.com/minio/warp/pkg/bench"
)

Expand Down
Loading

0 comments on commit 2e5e05a

Please sign in to comment.