diff --git a/.gitignore b/.gitignore index 561fc9c..255fa5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /aws-sdk-go-v2-0.7.0.tar.gz /aws-sdk-go-v2-0.18.0.tar.gz +/aws-sdk-go-v2-0.24.0.tar.gz diff --git a/0001-Convert-id-to-string-using-strconv.Itoa.patch b/0001-Convert-id-to-string-using-strconv.Itoa.patch new file mode 100644 index 0000000..af11f8c --- /dev/null +++ b/0001-Convert-id-to-string-using-strconv.Itoa.patch @@ -0,0 +1,39 @@ +From 7fc934968f405459774a4c55bae0a427ca714c4f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= +Date: Thu, 23 Jul 2020 19:39:02 +0200 +Subject: [PATCH] Convert id to string using strconv.Itoa +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fix #655. + +Signed-off-by: Robert-André Mauchin +--- + aws/signer/v2/v2_test.go | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/aws/signer/v2/v2_test.go b/aws/signer/v2/v2_test.go +index 3b0d08ad..32b96da6 100644 +--- a/aws/signer/v2/v2_test.go ++++ b/aws/signer/v2/v2_test.go +@@ -6,6 +6,7 @@ import ( + "net/http" + "net/url" + "os" ++ "strconv" + "testing" + "time" + +@@ -31,7 +32,7 @@ func (sb signerBuilder) BuildSigner() signer { + reader := bytes.NewReader(body) + req, _ = http.NewRequest(sb.Method, endpoint, reader) + req.Header.Add("Content-Type", "application/x-www-form-urlencoded") +- req.Header.Add("Content-Length", string(len(body))) ++ req.Header.Add("Content-Length", strconv.Itoa(len(body))) + } else { + req, _ = http.NewRequest(sb.Method, endpoint, nil) + req.URL.RawQuery = sb.Query.Encode() +-- +2.26.2 + diff --git a/golang-github-aws-sdk-2.spec b/golang-github-aws-sdk-2.spec index 95088a0..b2e0c70 100644 --- a/golang-github-aws-sdk-2.spec +++ b/golang-github-aws-sdk-2.spec @@ -3,7 +3,7 @@ # https://github.com/aws/aws-sdk-go-v2 %global goipath github.com/aws/aws-sdk-go-v2 -Version: 0.18.0 +Version: 0.24.0 %gometa @@ -22,9 +22,10 @@ Summary: AWS SDK for the Go programming language License: ASL 2.0 URL: %{gourl} Source0: %{gosource} +# Go 1.15: https://github.com/aws/aws-sdk-go-v2/issues/655 +Patch0: 0001-Convert-id-to-string-using-strconv.Itoa.patch BuildRequires: golang(github.com/jmespath/go-jmespath) -BuildRequires: golang(golang.org/x/net/http2) %description %{common_description} @@ -33,6 +34,7 @@ BuildRequires: golang(golang.org/x/net/http2) %prep %goprep +%patch0 -p1 %install %gopkginstall @@ -40,12 +42,15 @@ BuildRequires: golang(golang.org/x/net/http2) %if %{with check} %check # aws/external: needs network -%gocheck -t aws/external +%gocheck -t aws/external -d aws/retry %endif %gopkgfiles %changelog +* Thu Jul 23 19:15:58 CEST 2020 Robert-André Mauchin - 0.24.0-1 +- Update to 0.24.0 + * Tue Jan 28 18:03:21 CET 2020 Robert-André Mauchin - 0.18.0-1 - Update to 0.18.0 diff --git a/sources b/sources index fa57879..0b03578 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (aws-sdk-go-v2-0.18.0.tar.gz) = 3d9bff4e777bb3557145a26f47fa32799a85c7893e7cd6acecc35bfaeeda034bba3583f6dd5c74e9cd71de17305e5ec34c61481ef440e9bfd1b1321c4a1b4f9d +SHA512 (aws-sdk-go-v2-0.24.0.tar.gz) = 7f5218717e27b87223ca567d86c9730b868ba3b3c535b5536e4253b809232c4005e8cb0b9d021193ad599be5eadbad742e08204d4b53f92a4ec75ba5e3297732