Skip to content

Commit 639f39c

Browse files
committed
upgrade to v3
1 parent d938601 commit 639f39c

33 files changed

+218
-135
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GOPROXY ?= "https://proxy.golang.org,direct"
1212
MAKEFILE_PATH = $(dir $(realpath -s $(firstword $(MAKEFILE_LIST))))
1313
BUILD_DIR_PATH = ${MAKEFILE_PATH}/build
1414
SUPPORTED_PLATFORMS ?= "windows/amd64,darwin/amd64,darwin/arm64,linux/amd64,linux/arm64,linux/arm"
15-
SELECTOR_PKG_VERSION_VAR=github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector.versionID
15+
SELECTOR_PKG_VERSION_VAR=github.com/aws/amazon-ec2-instance-selector/v3/pkg/selector.versionID
1616
LATEST_RELEASE_TAG=$(shell git describe --tags --abbrev=0)
1717
PREVIOUS_RELEASE_TAG=$(shell git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
1818

README.md

Lines changed: 144 additions & 62 deletions
Large diffs are not rendered by default.

cmd/examples/example1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity"
8-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector"
7+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/bytequantity"
8+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/selector"
99
"github.com/aws/aws-sdk-go-v2/config"
1010
ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types"
1111
)

cmd/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ import (
2424
"syscall"
2525
"time"
2626

27-
commandline "github.com/aws/amazon-ec2-instance-selector/v2/pkg/cli"
28-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/env"
29-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/instancetypes"
30-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector"
31-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector/outputs"
32-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/sorter"
27+
commandline "github.com/aws/amazon-ec2-instance-selector/v3/pkg/cli"
28+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/env"
29+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/instancetypes"
30+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/selector"
31+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/selector/outputs"
32+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/sorter"
3333
"github.com/aws/aws-sdk-go-v2/aws"
3434
"github.com/aws/aws-sdk-go-v2/config"
3535
ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/aws/amazon-ec2-instance-selector/v2
1+
module github.com/aws/amazon-ec2-instance-selector/v3
22

33
go 1.23
44

pkg/bytequantity/bytequantity_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity"
8-
h "github.com/aws/amazon-ec2-instance-selector/v2/pkg/test"
7+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/bytequantity"
8+
h "github.com/aws/amazon-ec2-instance-selector/v3/pkg/test"
99
)
1010

1111
func TestParseToByteQuantity(t *testing.T) {

pkg/cli/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"reflect"
2222
"strings"
2323

24-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity"
25-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector"
24+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/bytequantity"
25+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/selector"
2626
"github.com/spf13/cobra"
2727
"github.com/spf13/pflag"
2828
)

pkg/cli/cli_internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"os"
1818
"testing"
1919

20-
h "github.com/aws/amazon-ec2-instance-selector/v2/pkg/test"
20+
h "github.com/aws/amazon-ec2-instance-selector/v3/pkg/test"
2121
"github.com/spf13/pflag"
2222
)
2323

pkg/cli/cli_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"reflect"
2121
"testing"
2222

23-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity"
24-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/cli"
25-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector"
26-
h "github.com/aws/amazon-ec2-instance-selector/v2/pkg/test"
23+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/bytequantity"
24+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/cli"
25+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/selector"
26+
h "github.com/aws/amazon-ec2-instance-selector/v3/pkg/test"
2727
"github.com/spf13/cobra"
2828
)
2929

pkg/cli/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strconv"
88
"strings"
99

10-
"github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity"
10+
"github.com/aws/amazon-ec2-instance-selector/v3/pkg/bytequantity"
1111
"github.com/mitchellh/go-homedir"
1212
"github.com/spf13/pflag"
1313
)

0 commit comments

Comments
 (0)