From 89be9c45ddd0403a0748f7e1db0f8f7674dfb449 Mon Sep 17 00:00:00 2001 From: Matthew Palmer Date: Mon, 14 Jun 2021 09:50:50 +0100 Subject: [PATCH] fix: Resolve go module import path When using go modules with a version of v2+ and the project is in the root directory, the module name must be appended with the major version. --- examples/custom_retry_function_test.go | 2 +- examples/delay_based_on_error_test.go | 2 +- examples/http_get_test.go | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/custom_retry_function_test.go b/examples/custom_retry_function_test.go index 06ae53c..d419267 100644 --- a/examples/custom_retry_function_test.go +++ b/examples/custom_retry_function_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/avast/retry-go" + "github.com/avast/retry-go/v3" "github.com/stretchr/testify/assert" ) diff --git a/examples/delay_based_on_error_test.go b/examples/delay_based_on_error_test.go index 63d48a8..11dcf1a 100644 --- a/examples/delay_based_on_error_test.go +++ b/examples/delay_based_on_error_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/avast/retry-go" + "github.com/avast/retry-go/v3" "github.com/stretchr/testify/assert" ) diff --git a/examples/http_get_test.go b/examples/http_get_test.go index 9cd5f8a..188bc4d 100644 --- a/examples/http_get_test.go +++ b/examples/http_get_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "github.com/avast/retry-go" + "github.com/avast/retry-go/v3" "github.com/stretchr/testify/assert" ) diff --git a/go.mod b/go.mod index 102fc9c..a1801f2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/avast/retry-go +module github.com/avast/retry-go/v3 go 1.13