From 2d268a9617d121bd0e681c4fdd87086e7462e51d Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Fri, 26 Jan 2024 15:04:54 +0100 Subject: [PATCH] ci: remove support for Go 1.16 and Go 1.17 Signed-off-by: Leonardo Di Donato --- .github/workflows/tests.yml | 6 ------ go.mod | 8 +++++++- go.sum | 7 ------- machine_test.go | 3 --- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d655aad..b6478e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,8 +16,6 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] go: [ - '1.16', - '1.17', '1.18', '1.19', '1.20', @@ -25,10 +23,6 @@ jobs: ] include: # Set the minimum Go patch version for the given Go minor - - go: '1.16' - GO_VERSION: '~1.16.0' - - go: '1.17' - GO_VERSION: '~1.17.0' - go: '1.18' GO_VERSION: '~1.18.0' - go: '1.19' diff --git a/go.mod b/go.mod index afd518e..779cc5d 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,11 @@ module github.com/leodido/go-urn -go 1.16 +go 1.18 require github.com/stretchr/testify v1.8.4 + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum index 479781e..fa4b6e6 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,10 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= 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.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/machine_test.go b/machine_test.go index 4fa4579..68bd488 100644 --- a/machine_test.go +++ b/machine_test.go @@ -28,9 +28,6 @@ func exec(t *testing.T, testCases []testCase, mode ParsingMode) { assert.Equal(t, tt.norm, urn.Normalize().String(), herror(ii, tt)) if mode == All || mode == RFC7643Only { assert.Equal(t, tt.isSCIM, urn.IsSCIM(), herror(ii, tt)) - // if tt.isSCIM { - // spew.Dump(urn.SCIM()) - // } } } else { assert.False(t, tt.ok, herror(ii, tt))