diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1eb7e19..77f5e0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: timeout-minutes: 1 strategy: matrix: - go-version: ['>=1.21.0'] + go-version: ['>=1.22.0'] platform: [ubuntu-22.04] runs-on: ${{ matrix.platform }} steps: @@ -68,7 +68,7 @@ jobs: timeout-minutes: 7 strategy: matrix: - go-version: ['>=1.21.0'] + go-version: ['>=1.22.0'] platform: [ubuntu-22.04] runs-on: ${{ matrix.platform }} steps: @@ -105,7 +105,7 @@ jobs: timeout-minutes: 5 strategy: matrix: - go-version: ['>=1.21.0'] + go-version: ['>=1.22.0'] platform: [ubuntu-22.04] runs-on: ${{ matrix.platform }} steps: @@ -149,7 +149,7 @@ jobs: /home/runner/go/bin/staticcheck -tests -go 1.20 ./... # /home/runner/go/bin/gosec ./... # does not yet support generics. # /home/runner/go/bin/structslop ./... # does not yet support generics. - /home/runner/go/bin/httperroryzer ./... + # /home/runner/go/bin/httperroryzer ./... # re-enable after https://github.com/komuw/kama/issues/63 # see: https://github.com/golang/go/commit/a98589711da5e9d935e8d690cfca92892e86d557 /home/runner/go/bin/errcheck -ignoregenerated -ignoretests -asserts ./... @@ -190,7 +190,7 @@ jobs: timeout-minutes: 3 strategy: matrix: - go-version: ['>=1.21.0'] + go-version: ['>=1.22.0'] platform: [ubuntu-22.04] runs-on: ${{ matrix.platform }} steps: @@ -214,7 +214,7 @@ jobs: # timeout-minutes: 2 # strategy: # matrix: - # go-version: ['>=1.21.0'] + # go-version: ['>=1.22.0'] # platform: [ubuntu-22.04] # runs-on: ${{ matrix.platform }} # steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 43ec2de..28bc1eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ Most recent version is listed first. +# v0.0.16 +- Update Go version: https://github.com/komuw/kama/pull/62 # v0.0.15 - Retracts v0.0.14 which had a panic bug. diff --git a/go.mod b/go.mod index 2be4726..86e0a61 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,15 @@ module github.com/komuw/kama -go 1.21 +go 1.22 require ( - golang.org/x/sys v0.16.0 - golang.org/x/tools v0.17.0 + golang.org/x/sys v0.17.0 + golang.org/x/tools v0.18.0 ) require ( github.com/google/go-cmp v0.6.0 // indirect - golang.org/x/mod v0.14.0 // indirect + golang.org/x/mod v0.15.0 // indirect ) require ( diff --git a/go.sum b/go.sum index 6223d8f..f7cb724 100644 --- a/go.sum +++ b/go.sum @@ -12,13 +12,13 @@ go.akshayshah.org/attest v1.0.2 h1:qOv9PXCG2mwnph3g0I3yZj0rLAwLyUITs8nhxP+wS44= go.akshayshah.org/attest v1.0.2/go.mod h1:PnWzcW5j9dkyGwTlBmUsYpPnHG0AUPrs1RQ+HrldWO0= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= -golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= +golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= -golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= -golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= +golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= 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/testdata/kama_test/http_request.txt b/testdata/kama_test/http_request.txt index 0beafea..a108441 100644 --- a/testdata/kama_test/http_request.txt +++ b/testdata/kama_test/http_request.txt @@ -38,10 +38,12 @@ METHODS: [ MultipartReader func(*http.Request) (*multipart.Reader, error) ParseForm func(*http.Request) error ParseMultipartForm func(*http.Request, int64) error + PathValue func(*http.Request, string) string PostFormValue func(*http.Request, string) string ProtoAtLeast func(*http.Request, int, int) bool Referer func(*http.Request) string SetBasicAuth func(*http.Request, string, string) + SetPathValue func(*http.Request, string, string) UserAgent func(*http.Request) string WithContext func(*http.Request, context.Context) *http.Request Write func(*http.Request, io.Writer) error diff --git a/testdata/packages_test/stdlib_archive_tar_pkg.txt b/testdata/packages_test/stdlib_archive_tar_pkg.txt index 5f2a58f..3f54e5d 100644 --- a/testdata/packages_test/stdlib_archive_tar_pkg.txt +++ b/testdata/packages_test/stdlib_archive_tar_pkg.txt @@ -42,6 +42,7 @@ TYPES: [ (*Reader) Next() (*Header, error) (*Reader) Read(b []byte) (int, error) Writer struct + (*Writer) AddFS(fsys io/fs.FS) error (*Writer) Close() error (*Writer) Flush() error (*Writer) Write(b []byte) (int, error) diff --git a/testdata/vars_test/pointer_struct_of_http.Request.txt b/testdata/vars_test/pointer_struct_of_http.Request.txt index cb227f2..d171313 100644 --- a/testdata/vars_test/pointer_struct_of_http.Request.txt +++ b/testdata/vars_test/pointer_struct_of_http.Request.txt @@ -38,10 +38,12 @@ METHODS: [ MultipartReader func(*http.Request) (*multipart.Reader, error) ParseForm func(*http.Request) error ParseMultipartForm func(*http.Request, int64) error + PathValue func(*http.Request, string) string PostFormValue func(*http.Request, string) string ProtoAtLeast func(*http.Request, int, int) bool Referer func(*http.Request) string SetBasicAuth func(*http.Request, string, string) + SetPathValue func(*http.Request, string, string) UserAgent func(*http.Request) string WithContext func(*http.Request, context.Context) *http.Request Write func(*http.Request, io.Writer) error diff --git a/testdata/vars_test/value_struct_of_http.Request.txt b/testdata/vars_test/value_struct_of_http.Request.txt index 0af2c42..edeae76 100644 --- a/testdata/vars_test/value_struct_of_http.Request.txt +++ b/testdata/vars_test/value_struct_of_http.Request.txt @@ -38,10 +38,12 @@ METHODS: [ MultipartReader func(*http.Request) (*multipart.Reader, error) ParseForm func(*http.Request) error ParseMultipartForm func(*http.Request, int64) error + PathValue func(*http.Request, string) string PostFormValue func(*http.Request, string) string ProtoAtLeast func(*http.Request, int, int) bool Referer func(*http.Request) string SetBasicAuth func(*http.Request, string, string) + SetPathValue func(*http.Request, string, string) UserAgent func(*http.Request) string WithContext func(*http.Request, context.Context) *http.Request Write func(*http.Request, io.Writer) error