From 065438b6803fb054407e3a64d3e0034c70b8af78 Mon Sep 17 00:00:00 2001 From: Patrick Cowland <44225864+patrickcping@users.noreply.github.com> Date: Fri, 29 Dec 2023 13:38:55 +0000 Subject: [PATCH] upgrade go version to `1.21` (#306) * upgrade go version to `1.21` * changelogs * changelog --- .github/workflows/codeql-analysis.yml | 7 ++++++- CHANGELOG.md | 29 +++++++++++++++++++++++++++ agreementmanagement/CHANGELOG.md | 1 + agreementmanagement/client_ext.go | 3 +-- agreementmanagement/go.mod | 4 +--- agreementmanagement/go.sum | 2 -- authorize/CHANGELOG.md | 1 + authorize/client_ext.go | 3 +-- authorize/go.mod | 4 +--- authorize/go.sum | 2 -- credentials/CHANGELOG.md | 1 + credentials/client_ext.go | 3 +-- credentials/go.mod | 7 ++----- credentials/go.sum | 2 -- go.mod | 4 ++-- go.sum | 1 + go.work | 2 +- management/CHANGELOG.md | 1 + management/client_ext.go | 3 +-- management/go.mod | 4 +--- management/go.sum | 2 -- mfa/CHANGELOG.md | 1 + mfa/client_ext.go | 3 +-- mfa/go.mod | 4 +--- mfa/go.sum | 2 -- pingone/config.go | 2 +- pingone/model/product.go | 2 +- pingone/model/region.go | 3 +-- risk/CHANGELOG.md | 1 + risk/client_ext.go | 3 +-- risk/go.mod | 4 +--- risk/go.sum | 2 -- scripts/client_ext.go.tmpl | 3 +-- scripts/generate-module.sh | 7 ++++--- scripts/generate-replace-regex.go | 6 ++++++ tools/go.mod | 2 +- tools/go.sum | 20 ++++++++++++++++++ verify/CHANGELOG.md | 1 + verify/client_ext.go | 3 +-- verify/go.mod | 4 +--- verify/go.sum | 2 -- 41 files changed, 96 insertions(+), 65 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 570df164..291cdb20 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 + + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/CHANGELOG.md b/CHANGELOG.md index 133dc22a..a5611df5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,35 @@ # Release (Unreleased) * `github.com/patrickcping/pingone-go-sdk-v2` : v0.11.4 + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/agreementmanagement` : [v0.3.1](./agreementmanagement/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/authorize` : [v0.4.1](./authorize/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/credentials` : [v0.6.2](./credentials/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.34.1](./management/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.18.3](./mfa/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/risk` : [v0.12.2](./risk/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) + * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) +* `github.com/patrickcping/pingone-go-sdk-v2/verify` : [v0.4.1](./verify/CHANGELOG.md) + * **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) + * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) # Release (2023-12-27) diff --git a/agreementmanagement/CHANGELOG.md b/agreementmanagement/CHANGELOG.md index c8897d91..d63e4f2f 100644 --- a/agreementmanagement/CHANGELOG.md +++ b/agreementmanagement/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.3.1 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/agreementmanagement/client_ext.go b/agreementmanagement/client_ext.go index ef0b4579..e0d19163 100644 --- a/agreementmanagement/client_ext.go +++ b/agreementmanagement/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/agreementmanagement/go.mod b/agreementmanagement/go.mod index bfee0d0e..2f522f71 100644 --- a/agreementmanagement/go.mod +++ b/agreementmanagement/go.mod @@ -1,5 +1,3 @@ module github.com/patrickcping/pingone-go-sdk-v2/agreementmanagement -go 1.18 - -require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b +go 1.21 diff --git a/agreementmanagement/go.sum b/agreementmanagement/go.sum index d20934a9..e69de29b 100644 --- a/agreementmanagement/go.sum +++ b/agreementmanagement/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= diff --git a/authorize/CHANGELOG.md b/authorize/CHANGELOG.md index a8128e6b..5cc0f12e 100644 --- a/authorize/CHANGELOG.md +++ b/authorize/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.4.1 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/authorize/client_ext.go b/authorize/client_ext.go index f3490295..68060162 100644 --- a/authorize/client_ext.go +++ b/authorize/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/authorize/go.mod b/authorize/go.mod index 615e5c2a..c4e85879 100644 --- a/authorize/go.mod +++ b/authorize/go.mod @@ -1,5 +1,3 @@ module github.com/patrickcping/pingone-go-sdk-v2/authorize -go 1.18 - -require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b +go 1.21 diff --git a/authorize/go.sum b/authorize/go.sum index d20934a9..e69de29b 100644 --- a/authorize/go.sum +++ b/authorize/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= diff --git a/credentials/CHANGELOG.md b/credentials/CHANGELOG.md index 8491d29f..4494cb4a 100644 --- a/credentials/CHANGELOG.md +++ b/credentials/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.6.2 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/credentials/client_ext.go b/credentials/client_ext.go index d127f081..fb316d65 100644 --- a/credentials/client_ext.go +++ b/credentials/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/credentials/go.mod b/credentials/go.mod index 52d6ff23..b6fcf5f8 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -1,11 +1,8 @@ module github.com/patrickcping/pingone-go-sdk-v2/credentials -go 1.18 +go 1.21 -require ( - github.com/stretchr/testify v1.8.4 - golang.org/x/exp v0.0.0-20231226003508-02704c960a9b -) +require github.com/stretchr/testify v1.8.4 require ( github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/credentials/go.sum b/credentials/go.sum index a04f43bc..fa4b6e68 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -4,8 +4,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/go.mod b/go.mod index 298205a7..df6d3eeb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/patrickcping/pingone-go-sdk-v2 -go 1.20 +go 1.21 require ( github.com/patrickcping/pingone-go-sdk-v2/agreementmanagement v0.3.0 @@ -10,12 +10,12 @@ require ( github.com/patrickcping/pingone-go-sdk-v2/mfa v0.18.2 github.com/patrickcping/pingone-go-sdk-v2/risk v0.12.1 github.com/patrickcping/pingone-go-sdk-v2/verify v0.4.0 - golang.org/x/exp v0.0.0-20231226003508-02704c960a9b golang.org/x/oauth2 v0.15.0 ) require ( github.com/golang/protobuf v1.5.3 // indirect + golang.org/x/exp v0.0.0-20231226003508-02704c960a9b // indirect golang.org/x/net v0.19.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.31.0 // indirect diff --git a/go.sum b/go.sum index a533e027..e13b2db8 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,7 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/patrickcping/pingone-go-sdk-v2/agreementmanagement v0.3.0 h1:1q0mSmaqukeieFXy2uYB4DDVTE0Jl6/+DIvxwrLIjBI= github.com/patrickcping/pingone-go-sdk-v2/agreementmanagement v0.3.0/go.mod h1:tq8S1tyW9yYipql5KFhdEWmMZo8rMbkVAmVJ8/TcB7M= github.com/patrickcping/pingone-go-sdk-v2/authorize v0.4.0 h1:OwtWDa+HIblEH1sHSqK6m73XWMlc7O3OMLvPrl5zJLk= diff --git a/go.work b/go.work index 9c3d4bcb..8511422e 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.20 +go 1.21 use ( ./ diff --git a/management/CHANGELOG.md b/management/CHANGELOG.md index 237a1c4c..d4b59717 100644 --- a/management/CHANGELOG.md +++ b/management/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.34.1 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/management/client_ext.go b/management/client_ext.go index 0bb2a3bf..ccf0da1f 100644 --- a/management/client_ext.go +++ b/management/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/management/go.mod b/management/go.mod index 4e8a7c63..03ba1c06 100644 --- a/management/go.mod +++ b/management/go.mod @@ -1,5 +1,3 @@ module github.com/patrickcping/pingone-go-sdk-v2/management -go 1.18 - -require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b +go 1.21 diff --git a/management/go.sum b/management/go.sum index d20934a9..e69de29b 100644 --- a/management/go.sum +++ b/management/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= diff --git a/mfa/CHANGELOG.md b/mfa/CHANGELOG.md index 57530bcc..f6a4b99b 100644 --- a/mfa/CHANGELOG.md +++ b/mfa/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.18.3 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/mfa/client_ext.go b/mfa/client_ext.go index b03d184e..1f0b101a 100644 --- a/mfa/client_ext.go +++ b/mfa/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/mfa/go.mod b/mfa/go.mod index a9d8e2b9..23786b23 100644 --- a/mfa/go.mod +++ b/mfa/go.mod @@ -1,5 +1,3 @@ module github.com/patrickcping/pingone-go-sdk-v2/mfa -go 1.18 - -require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b +go 1.21 diff --git a/mfa/go.sum b/mfa/go.sum index d20934a9..e69de29b 100644 --- a/mfa/go.sum +++ b/mfa/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= diff --git a/pingone/config.go b/pingone/config.go index 03880577..473a9ca0 100644 --- a/pingone/config.go +++ b/pingone/config.go @@ -4,10 +4,10 @@ import ( "fmt" "os" "regexp" + "slices" "strings" "github.com/patrickcping/pingone-go-sdk-v2/pingone/model" - "golang.org/x/exp/slices" "golang.org/x/oauth2" ) diff --git a/pingone/model/product.go b/pingone/model/product.go index 794c2dd4..aafcd7d4 100644 --- a/pingone/model/product.go +++ b/pingone/model/product.go @@ -2,10 +2,10 @@ package model import ( "fmt" + "slices" "sort" "github.com/patrickcping/pingone-go-sdk-v2/management" - "golang.org/x/exp/slices" ) type ProductMapping struct { diff --git a/pingone/model/region.go b/pingone/model/region.go index 119f8d3e..8e787b76 100644 --- a/pingone/model/region.go +++ b/pingone/model/region.go @@ -2,10 +2,9 @@ package model import ( "log" + "slices" "sort" - "golang.org/x/exp/slices" - "github.com/patrickcping/pingone-go-sdk-v2/management" ) diff --git a/risk/CHANGELOG.md b/risk/CHANGELOG.md index bc309a40..4f1cded7 100644 --- a/risk/CHANGELOG.md +++ b/risk/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.12.2 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/risk/client_ext.go b/risk/client_ext.go index a1ff047e..44908014 100644 --- a/risk/client_ext.go +++ b/risk/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/risk/go.mod b/risk/go.mod index 19f70455..b3a0218c 100644 --- a/risk/go.mod +++ b/risk/go.mod @@ -1,5 +1,3 @@ module github.com/patrickcping/pingone-go-sdk-v2/risk -go 1.18 - -require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b +go 1.21 diff --git a/risk/go.sum b/risk/go.sum index d20934a9..e69de29b 100644 --- a/risk/go.sum +++ b/risk/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= diff --git a/scripts/client_ext.go.tmpl b/scripts/client_ext.go.tmpl index 3e58e4a5..c69a72b5 100644 --- a/scripts/client_ext.go.tmpl +++ b/scripts/client_ext.go.tmpl @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/scripts/generate-module.sh b/scripts/generate-module.sh index 13dc7849..ae960743 100755 --- a/scripts/generate-module.sh +++ b/scripts/generate-module.sh @@ -13,9 +13,6 @@ else echo "==> Running codegen-$3..." openapi-generator-cli version-manager set 7.0.1 openapi-generator-cli generate -i generate/pingone-$3.yml -g go --additional-properties=packageName=$3,packageVersion=$version,isGoSubmodule=true,enumClassPrefix=true,apiNameSuffix=Api -o . --git-repo-id $2 --git-user-id $1 --http-user-agent \"pingtools PingOne-GOLANG-SDK-$3/$version\"; \ - go get -u ./... - go mod tidy - go mod vendor echo "==> Copying custom templated files..." template=$(cat ../scripts/client_ext.go.tmpl) @@ -28,6 +25,10 @@ else echo "==> Applying module specific postprocessing..." go run generate/postprocessing/generate-replace-regex.go . + go get -u ./... + go mod tidy + go mod vendor + else \ echo "pingone-$3.yml missing. Skipping"; \ fi diff --git a/scripts/generate-replace-regex.go b/scripts/generate-replace-regex.go index ea5d3902..02076528 100644 --- a/scripts/generate-replace-regex.go +++ b/scripts/generate-replace-regex.go @@ -50,6 +50,12 @@ var ( repl string }{ + { + fileSelectPattern: "go.mod", + pattern: `go 1.18`, + repl: `go 1.21`, + }, + ///////////////////////// // ALL configuration.go ///////////////////////// diff --git a/tools/go.mod b/tools/go.mod index 6eb20bf2..914cb6db 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/patrickcping/pingone-go-sdk-v2/tools -go 1.20 +go 1.21 require ( github.com/golangci/golangci-lint v1.55.1 diff --git a/tools/go.sum b/tools/go.sum index fe657246..47979f4a 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -63,9 +63,11 @@ github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF0 github.com/OpenPeeDeeP/depguard/v2 v2.1.0 h1:aQl70G173h/GZYhWf36aE5H0KaujXfVMnn/f1kSDVYY= github.com/OpenPeeDeeP/depguard/v2 v2.1.0/go.mod h1:PUBgk35fX4i7JDmwzlJwJ+GMe6NfO1723wmJMgPThNQ= github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= +github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= github.com/alecthomas/go-check-sumtype v0.1.3 h1:M+tqMxB68hcgccRXBMVCPI4UJ+QUfdSx0xdbypKCqA8= github.com/alecthomas/go-check-sumtype v0.1.3/go.mod h1:WyYPfhfkdhyrdaligV6svFopZV8Lqdzn5pyVBaV6jhQ= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= +github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -82,6 +84,7 @@ github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1 github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -146,6 +149,7 @@ github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4 github.com/firefart/nonamedreturns v1.0.4 h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y= github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= @@ -164,8 +168,10 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= github.com/go-toolsmith/astcopy v1.1.0 h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s= @@ -178,6 +184,7 @@ github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlN github.com/go-toolsmith/astp v1.1.0 h1:dXPuCl6u2llURjdPLLDxJeZInAeZ0/eZwFJmqZMnpQA= github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= github.com/go-toolsmith/pkgload v1.2.2 h1:0CtmHq/02QhxcF7E9N5LIFcYFsMR5rdovfqTtRKkgIk= +github.com/go-toolsmith/pkgload v1.2.2/go.mod h1:R2hxLNRKuAsiXCo2i5J6ZQPhnPMOVtU+f0arbFPWCus= github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= github.com/go-toolsmith/strparse v1.1.0 h1:GAioeZUK9TGxnLS+qfdqNbA4z0SSm5zVNtCQiyP2Bvw= github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= @@ -269,6 +276,7 @@ github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= @@ -291,6 +299,7 @@ github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3 github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= +github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= @@ -337,9 +346,11 @@ github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= github.com/kunwardeep/paralleltest v1.0.8 h1:Ul2KsqtzFxTlSU7IP0JusWlLiNqQaloB9vguyjbE558= @@ -395,6 +406,7 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8pzda2l0= github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4= github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= @@ -404,9 +416,12 @@ github.com/nunnatsa/ginkgolinter v0.14.0/go.mod h1:cm2xaqCUCRd7qcP4DqbVvpcyEMkuL github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= +github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= github.com/onsi/gomega v1.28.1 h1:MijcGUbfYuznzK/5R4CPNoUP/9Xvuo20sXfEm6XxoTA= +github.com/onsi/gomega v1.28.1/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= github.com/otiai10/copy v1.11.0 h1:OKBD80J/mLBrwnzXqGtFCzprFSGioo30JcmR4APsNwc= +github.com/otiai10/copy v1.11.0/go.mod h1:rSaLseMUsZFFbsFGc7wCJnnkTAvdc5L6VWxPE4308Ww= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= @@ -458,6 +473,7 @@ github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4l github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryancurrah/gomodguard v1.3.0 h1:q15RT/pd6UggBXVBuLps8BXRvl5GPBcwVA7BJHMLuTw= github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= @@ -566,6 +582,7 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t gitlab.com/bosi/decorder v0.4.1 h1:VdsdfxhstabyhZovHafFw+9eJ6eU0d2CkFNJcZz/NU4= gitlab.com/bosi/decorder v0.4.1/go.mod h1:jecSqWUew6Yle1pCr2eLWTensJMmsxHsBwt+PVbkAqA= go-simpler.org/assert v0.6.0 h1:QxSrXa4oRuo/1eHMXSBFHKvJIpWABayzKldqZyugG7E= +go-simpler.org/assert v0.6.0/go.mod h1:74Eqh5eI6vCK6Y5l3PI8ZYFXG4Sa+tkr70OIPJAUr28= go-simpler.org/sloglint v0.1.2 h1:IjdhF8NPxyn0Ckn2+fuIof7ntSnVUAqBFcQRrnG9AiM= go-simpler.org/sloglint v0.1.2/go.mod h1:2LL+QImPfTslD5muNPydAEYmpXIj6o/WYcqnJjLi4o4= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -579,6 +596,7 @@ go.tmz.dev/musttag v0.7.2/go.mod h1:m6q5NiiSKMnQYokefa2xGoyoXnrswCbJ0AWYzf4Zs28= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= +go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= @@ -683,6 +701,7 @@ golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -961,6 +980,7 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= diff --git a/verify/CHANGELOG.md b/verify/CHANGELOG.md index 0cc7cbcf..c805ff82 100644 --- a/verify/CHANGELOG.md +++ b/verify/CHANGELOG.md @@ -1,5 +1,6 @@ # v0.4.1 (Unreleased) +* **Note** Upgrade GO to `v1.21` [#306](https://github.com/patrickcping/pingone-go-sdk-v2/pull/306) * **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) * **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305) diff --git a/verify/client_ext.go b/verify/client_ext.go index 36804933..7b20adc2 100644 --- a/verify/client_ext.go +++ b/verify/client_ext.go @@ -6,11 +6,10 @@ import ( "net/http" "reflect" "regexp" + "slices" "strconv" "strings" "time" - - "golang.org/x/exp/slices" ) type SDKInterfaceFunc func() (any, *http.Response, error) diff --git a/verify/go.mod b/verify/go.mod index 1dda3647..b0e081f7 100644 --- a/verify/go.mod +++ b/verify/go.mod @@ -1,5 +1,3 @@ module github.com/patrickcping/pingone-go-sdk-v2/verify -go 1.18 - -require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b +go 1.21 diff --git a/verify/go.sum b/verify/go.sum index d20934a9..e69de29b 100644 --- a/verify/go.sum +++ b/verify/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=