Repository: seqsense/aws-iot-device-sdk-go
Pull request #212 (2021-02-19 15:47:42)

chore(deps): update golang docker tag to v1.16
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | stage | minor | `1.15-alpine3.12` -> `1.16-alpine3.12` |

---

### Renovate configuration

:date: **Schedule**: "every weekend" in timezone Asia/Tokyo.

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/seqsense/aws-iot-device-sdk-go).

codecov[bot]: # [Codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212?src=pr&el=h1) Report
> Merging [#212](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212?src=pr&el=desc) (58f3f61) into [master](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/commit/736a443882c7b1d186aec10954e939d12ed824f7?el=desc) (736a443) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212/graphs/tree.svg?width=650&height=150&src=pr&token=St5U6jzMqv)](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master     #212   +/-   ##
=======================================
  Coverage   58.19%   58.19%           
=======================================
  Files          27       27           
  Lines        1239     1239           
=======================================
  Hits          721      721           
  Misses        461      461           
  Partials       57       57           
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212?src=pr&el=footer). Last update [736a443...404bc15](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/pull/212?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Patch:
diff --git a/awsiotdev.go b/awsiotdev.go
index 4a6e77f..223509c 100644
--- a/awsiotdev.go
+++ b/awsiotdev.go
@@ -18,7 +18,7 @@ package awsiotdev
 import (
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Device is an AWS IoT device.
diff --git a/dialer.go b/dialer.go
index 09a1dc9..592b870 100644
--- a/dialer.go
+++ b/dialer.go
@@ -21,8 +21,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	presigner "github.com/seqsense/aws-iot-device-sdk-go/v4/presigner"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	presigner "github.com/seqsense/aws-iot-device-sdk-go/v5/presigner"
 )
 
 type presignDialer struct {
diff --git a/examples/jobs/main.go b/examples/jobs/main.go
index 09c906c..49c9ef8 100644
--- a/examples/jobs/main.go
+++ b/examples/jobs/main.go
@@ -21,8 +21,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/jobs"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/jobs"
 )
 
 func main() {
diff --git a/examples/shadow/main.go b/examples/shadow/main.go
index 2b24abb..cf16291 100644
--- a/examples/shadow/main.go
+++ b/examples/shadow/main.go
@@ -21,8 +21,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/shadow"
+	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/shadow"
 )
 
 func main() {
diff --git a/examples/tunnel/main.go b/examples/tunnel/main.go
index d10d6ae..4daa9c0 100644
--- a/examples/tunnel/main.go
+++ b/examples/tunnel/main.go
@@ -23,8 +23,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index fc36794..4397e88 100644
--- a/go.mod
+++ b/go.mod
@@ -1,8 +1,8 @@
-module github.com/seqsense/aws-iot-device-sdk-go/v4
+module github.com/seqsense/aws-iot-device-sdk-go/v5
 
 require (
 	github.com/at-wat/mqtt-go v0.12.0
-	github.com/aws/aws-sdk-go v1.37.14
+	github.com/aws/aws-sdk-go v1.37.15
 	github.com/davecgh/go-spew v1.1.1 // indirect
 	github.com/golang/protobuf v1.4.3
 	github.com/google/uuid v1.2.0
diff --git a/go.sum b/go.sum
index 0db6bd2..3f4b002 100644
--- a/go.sum
+++ b/go.sum
@@ -2,8 +2,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT
 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
 github.com/at-wat/mqtt-go v0.12.0 h1:FMNOx7ERFt3N8kx/LxSSfGMk5BnlB5cwxjRqrYV6+7A=
 github.com/at-wat/mqtt-go v0.12.0/go.mod h1:b4QTk+HgoReGBw9R652AH0Kqc2OvkLSD7lOgyxWgeQE=
-github.com/aws/aws-sdk-go v1.37.14 h1:thuR1hd1doCvsaMDYDMhqCGSmw39bSvZaw+DPGhMm5w=
-github.com/aws/aws-sdk-go v1.37.14/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
+github.com/aws/aws-sdk-go v1.37.15 h1:W7l7gLLMcYRlg6a+uvf3Zz4jYwdqYzhe5ymqwWoOhp4=
+github.com/aws/aws-sdk-go v1.37.15/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
 github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
 github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
diff --git a/jobs/jobs.go b/jobs/jobs.go
index e78e25f..3f57eeb 100644
--- a/jobs/jobs.go
+++ b/jobs/jobs.go
@@ -23,8 +23,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Jobs is an interface of IoT Jobs.
diff --git a/presigner/presign.go b/presigner/presign.go
index 73ec9ea..2c687ad 100644
--- a/presigner/presign.go
+++ b/presigner/presign.go
@@ -31,7 +31,7 @@ import (
 	"github.com/aws/aws-sdk-go/aws/credentials"
 	"github.com/aws/aws-sdk-go/aws/signer/v4"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Presigner is an AWS v4 signer wrapper for AWS IoT.
diff --git a/shadow/shadow.go b/shadow/shadow.go
index edecba0..cb59544 100644
--- a/shadow/shadow.go
+++ b/shadow/shadow.go
@@ -24,8 +24,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Shadow is an interface of Thing Shadow.
diff --git a/shadow/state.go b/shadow/state.go
index 908a3ab..932d3a0 100644
--- a/shadow/state.go
+++ b/shadow/state.go
@@ -19,7 +19,7 @@ import (
 	"errors"
 	"fmt"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // ErrVersionConflict means thing state update was aborted due to version conflict.
diff --git a/tunnel/cmd/localproxy/main.go b/tunnel/cmd/localproxy/main.go
index 314fe02..aa0d214 100644
--- a/tunnel/cmd/localproxy/main.go
+++ b/tunnel/cmd/localproxy/main.go
@@ -21,7 +21,7 @@ import (
 	"log"
 	"net"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 var (
diff --git a/tunnel/cmd/secure-tunnel-server/Dockerfile b/tunnel/cmd/secure-tunnel-server/Dockerfile
index 7497e0a..05e4b51 100644
--- a/tunnel/cmd/secure-tunnel-server/Dockerfile
+++ b/tunnel/cmd/secure-tunnel-server/Dockerfile
@@ -1,5 +1,5 @@
 # =====================
-FROM golang:1.15-alpine3.12 as go-builder
+FROM golang:1.16-alpine3.12 as go-builder
 
 ENV CGO_ENABLED=0
 
diff --git a/tunnel/cmd/secure-tunnel-server/main.go b/tunnel/cmd/secure-tunnel-server/main.go
index 8478ab0..a290beb 100644
--- a/tunnel/cmd/secure-tunnel-server/main.go
+++ b/tunnel/cmd/secure-tunnel-server/main.go
@@ -28,8 +28,8 @@ import (
 
 	mqtt "github.com/at-wat/mqtt-go"
 	"github.com/aws/aws-sdk-go/aws/session"
-	awsiot "github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/server"
+	awsiot "github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/server"
 )
 
 var (
diff --git a/tunnel/destination.go b/tunnel/destination.go
index ae6f7bb..ad7d3e5 100644
--- a/tunnel/destination.go
+++ b/tunnel/destination.go
@@ -19,8 +19,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 func proxyDestination(ws io.ReadWriter, dialer Dialer, eh ErrorHandler) error {
diff --git a/tunnel/msg/helper.go b/tunnel/msg/helper.go
index eba4ca7..be02dd3 100644
--- a/tunnel/msg/helper.go
+++ b/tunnel/msg/helper.go
@@ -19,7 +19,7 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // WriteMessage marshals the message and sends to the writer.
diff --git a/tunnel/proxy.go b/tunnel/proxy.go
index 79e58bf..b8f051f 100644
--- a/tunnel/proxy.go
+++ b/tunnel/proxy.go
@@ -24,7 +24,7 @@ import (
 
 	"golang.org/x/net/websocket"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 const (
diff --git a/tunnel/proxyio.go b/tunnel/proxyio.go
index 5083a1a..d88deab 100644
--- a/tunnel/proxyio.go
+++ b/tunnel/proxyio.go
@@ -18,7 +18,7 @@ import (
 	"fmt"
 	"io"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 func readProxy(ws, conn io.ReadWriter, streamID int32, eh ErrorHandler) {
diff --git a/tunnel/server/api.go b/tunnel/server/api.go
index db660ba..ee6d927 100644
--- a/tunnel/server/api.go
+++ b/tunnel/server/api.go
@@ -27,8 +27,8 @@ import (
 	"github.com/aws/aws-sdk-go/private/protocol/json/jsonutil"
 	ist "github.com/aws/aws-sdk-go/service/iotsecuretunneling"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 // apiHandler handles iotsecuretunneling API requests.
diff --git a/tunnel/server/notifier.go b/tunnel/server/notifier.go
index e4b1734..1717634 100644
--- a/tunnel/server/notifier.go
+++ b/tunnel/server/notifier.go
@@ -21,8 +21,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
 )
 
 const (
diff --git a/tunnel/server/tunnel.go b/tunnel/server/tunnel.go
index bf44528..f61a0cd 100644
--- a/tunnel/server/tunnel.go
+++ b/tunnel/server/tunnel.go
@@ -24,8 +24,8 @@ import (
 
 	"golang.org/x/net/websocket"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 // TunnelHandler handles websocket based secure tunneling sessions.
diff --git a/tunnel/source.go b/tunnel/source.go
index 4ae63df..b6c7222 100644
--- a/tunnel/source.go
+++ b/tunnel/source.go
@@ -21,8 +21,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 func proxySource(ws io.ReadWriter, listener net.Listener, eh ErrorHandler) error {
diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go
index df6a4cb..dff0878 100644
--- a/tunnel/tunnel.go
+++ b/tunnel/tunnel.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 // Tunnel is an interface of secure tunneling.


Test patch:
diff --git a/dialer_test.go b/dialer_test.go
index f538f09..3b98969 100644
--- a/dialer_test.go
+++ b/dialer_test.go
@@ -40,8 +40,8 @@ import (
 	"github.com/aws/aws-sdk-go/aws/client"
 	"github.com/aws/aws-sdk-go/aws/session"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/presigner"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/presigner"
 )
 
 type dummyConfigProvider struct{}
diff --git a/jobs/jobs_test.go b/jobs/jobs_test.go
index b395c9e..73e0139 100644
--- a/jobs/jobs_test.go
+++ b/jobs/jobs_test.go
@@ -25,7 +25,7 @@ import (
 	"github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 var errPublish = errors.New("publish failure")
diff --git a/shadow/shadow_test.go b/shadow/shadow_test.go
index c53c84b..d9051d5 100644
--- a/shadow/shadow_test.go
+++ b/shadow/shadow_test.go
@@ -25,7 +25,7 @@ import (
 	"github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 type mockDevice struct {
diff --git a/shadow/state_test.go b/shadow/state_test.go
index 0c5cc6c..7518b93 100644
--- a/shadow/state_test.go
+++ b/shadow/state_test.go
@@ -21,7 +21,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 func TestThingDocument_update(t *testing.T) {
diff --git a/tunnel/msg/helper_test.go b/tunnel/msg/helper_test.go
index e5cf015..9efc2c9 100644
--- a/tunnel/msg/helper_test.go
+++ b/tunnel/msg/helper_test.go
@@ -19,7 +19,7 @@ import (
 	"errors"
 	"testing"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 func TestWriteMessage(t *testing.T) {
diff --git a/tunnel/proxy_test.go b/tunnel/proxy_test.go
index b0bbc6a..ea2b837 100644
--- a/tunnel/proxy_test.go
+++ b/tunnel/proxy_test.go
@@ -24,8 +24,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
 )
 
 var (
diff --git a/tunnel/server/api_test.go b/tunnel/server/api_test.go
index eca9ecf..96933a7 100644
--- a/tunnel/server/api_test.go
+++ b/tunnel/server/api_test.go
@@ -30,7 +30,7 @@ import (
 	"github.com/aws/aws-sdk-go/aws/session"
 	ist "github.com/aws/aws-sdk-go/service/iotsecuretunneling"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 func TestAPI(t *testing.T) {
diff --git a/tunnel/tunnel_test.go b/tunnel/tunnel_test.go
index 109dba4..68407d1 100644
--- a/tunnel/tunnel_test.go
+++ b/tunnel/tunnel_test.go
@@ -24,7 +24,7 @@ import (
 	mqtt "github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v4/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
 )
 
 type mockDevice struct {