Skip to content

Commit 1df3c46

Browse files
authored
Upgrade iot client GO to version 3.0.0 (#169)
1 parent 5a10fda commit 1df3c46

25 files changed

+98
-98
lines changed

.github/workflows/check-dependencies-task.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838

3939
- name: Install licensed
4040
uses: jonabc/setup-licensed@v1
@@ -43,7 +43,7 @@ jobs:
4343
version: 3.x
4444

4545
- name: Install Go
46-
uses: actions/setup-go@v3
46+
uses: actions/setup-go@v5
4747
with:
4848
go-version: ${{ env.GO_VERSION }}
4949

@@ -81,7 +81,7 @@ jobs:
8181

8282
steps:
8383
- name: Checkout repository
84-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
8585

8686
- name: Install licensed
8787
uses: jonabc/setup-licensed@v1
@@ -90,7 +90,7 @@ jobs:
9090
version: 3.x
9191

9292
- name: Install Go
93-
uses: actions/setup-go@v3
93+
uses: actions/setup-go@v5
9494
with:
9595
go-version: ${{ env.GO_VERSION }}
9696

.github/workflows/release-go-task.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
2727

@@ -55,7 +55,7 @@ jobs:
5555

5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959

6060
- name: Download artifacts
6161
uses: actions/download-artifact@v4

.github/workflows/test-go-task.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ jobs:
7575

7676
steps:
7777
- name: Checkout repository
78-
uses: actions/checkout@v3
78+
uses: actions/checkout@v4
7979

8080
- name: Install Go
81-
uses: actions/setup-go@v3
81+
uses: actions/setup-go@v5
8282
with:
8383
go-version: ${{ env.GO_VERSION }}
8484

.licenses/go/github.com/arduino/iot-client-go/v2.dep.yml renamed to .licenses/go/github.com/arduino/iot-client-go/v3.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
name: github.com/arduino/iot-client-go/v2
3-
version: v2.0.3
2+
name: github.com/arduino/iot-client-go/v3
3+
version: v3.0.1
44
type: go
55
summary:
6-
homepage: https://pkg.go.dev/github.com/arduino/iot-client-go/v2
6+
homepage: https://pkg.go.dev/github.com/arduino/iot-client-go/v3
77
license: apache-2.0
88
licenses:
99
- sources: LICENSE

.licenses/go/golang.org/x/oauth2.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: golang.org/x/oauth2
3-
version: v0.21.0
3+
version: v0.23.0
44
type: go
55
summary: Package oauth2 provides support for making OAuth2 authorized and authenticated
66
HTTP requests, as specified in RFC 6749.
@@ -9,7 +9,7 @@ license: bsd-3-clause
99
licenses:
1010
- sources: LICENSE
1111
text: |
12-
Copyright (c) 2009 The Go Authors. All rights reserved.
12+
Copyright 2009 The Go Authors.
1313
1414
Redistribution and use in source and binary forms, with or without
1515
modification, are permitted provided that the following conditions are
@@ -21,7 +21,7 @@ licenses:
2121
copyright notice, this list of conditions and the following disclaimer
2222
in the documentation and/or other materials provided with the
2323
distribution.
24-
* Neither the name of Google Inc. nor the names of its
24+
* Neither the name of Google LLC nor the names of its
2525
contributors may be used to endorse or promote products derived from
2626
this software without specific prior written permission.
2727

.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: golang.org/x/oauth2/clientcredentials
3-
version: v0.21.0
3+
version: v0.23.0
44
type: go
55
summary: Package clientcredentials implements the OAuth2.0 "client credentials" token
66
flow, also known as the "two-legged OAuth 2.0".
77
homepage: https://pkg.go.dev/golang.org/x/oauth2/clientcredentials
88
license: bsd-3-clause
99
licenses:
10-
- sources: oauth2@v0.21.0/LICENSE
10+
- sources: oauth2@v0.23.0/LICENSE
1111
text: |
12-
Copyright (c) 2009 The Go Authors. All rights reserved.
12+
Copyright 2009 The Go Authors.
1313
1414
Redistribution and use in source and binary forms, with or without
1515
modification, are permitted provided that the following conditions are
@@ -21,7 +21,7 @@ licenses:
2121
copyright notice, this list of conditions and the following disclaimer
2222
in the documentation and/or other materials provided with the
2323
distribution.
24-
* Neither the name of Google Inc. nor the names of its
24+
* Neither the name of Google LLC nor the names of its
2525
contributors may be used to endorse or promote products derived from
2626
this software without specific prior written permission.
2727

.licenses/go/golang.org/x/oauth2/internal.dep.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: golang.org/x/oauth2/internal
3-
version: v0.21.0
3+
version: v0.23.0
44
type: go
55
summary: Package internal contains support packages for oauth2 package.
66
homepage: https://pkg.go.dev/golang.org/x/oauth2/internal
77
license: bsd-3-clause
88
licenses:
9-
- sources: oauth2@v0.21.0/LICENSE
9+
- sources: oauth2@v0.23.0/LICENSE
1010
text: |
11-
Copyright (c) 2009 The Go Authors. All rights reserved.
11+
Copyright 2009 The Go Authors.
1212
1313
Redistribution and use in source and binary forms, with or without
1414
modification, are permitted provided that the following conditions are
@@ -20,7 +20,7 @@ licenses:
2020
copyright notice, this list of conditions and the following disclaimer
2121
in the documentation and/or other materials provided with the
2222
distribution.
23-
* Neither the name of Google Inc. nor the names of its
23+
* Neither the name of Google LLC nor the names of its
2424
contributors may be used to endorse or promote products derived from
2525
this software without specific prior written permission.
2626

command/dashboard/dashboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
package dashboard
1919

2020
import (
21-
iotclient "github.com/arduino/iot-client-go/v2"
21+
iotclient "github.com/arduino/iot-client-go/v3"
2222
)
2323

2424
// DashboardInfo contains the most interesting

command/device/createlora.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/arduino/arduino-cloud-cli/arduino/cli"
2727
"github.com/arduino/arduino-cloud-cli/config"
2828
"github.com/arduino/arduino-cloud-cli/internal/iot"
29-
iotclient "github.com/arduino/iot-client-go/v2"
29+
iotclient "github.com/arduino/iot-client-go/v3"
3030
"github.com/sirupsen/logrus"
3131
"go.bug.st/serial"
3232
)

command/device/device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package device
1919

2020
import (
2121
"github.com/arduino/arduino-cloud-cli/command/tag"
22-
iotclient "github.com/arduino/iot-client-go/v2"
22+
iotclient "github.com/arduino/iot-client-go/v3"
2323
)
2424

2525
// DeviceInfo contains the most interesting

command/device/provision.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/arduino/arduino-cloud-cli/internal/binary"
3030
"github.com/arduino/arduino-cloud-cli/internal/serial"
3131
"github.com/arduino/go-paths-helper"
32-
iotclient "github.com/arduino/iot-client-go/v2"
32+
iotclient "github.com/arduino/iot-client-go/v3"
3333
"github.com/sirupsen/logrus"
3434
)
3535

command/ota/massupload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/arduino/arduino-cloud-cli/internal/ota"
3232
otaapi "github.com/arduino/arduino-cloud-cli/internal/ota-api"
3333

34-
iotclient "github.com/arduino/iot-client-go/v2"
34+
iotclient "github.com/arduino/iot-client-go/v3"
3535
)
3636

3737
const (

command/ota/massupload_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"testing"
2626

2727
otaapi "github.com/arduino/arduino-cloud-cli/internal/ota-api"
28-
iotclient "github.com/arduino/iot-client-go/v2"
28+
iotclient "github.com/arduino/iot-client-go/v3"
2929
"github.com/gofrs/uuid"
3030
"github.com/stretchr/testify/assert"
3131
)

command/template/apply.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/arduino/arduino-cloud-cli/config"
3232
"github.com/arduino/arduino-cloud-cli/internal/iot"
3333
storageapi "github.com/arduino/arduino-cloud-cli/internal/storage-api"
34-
iotclient "github.com/arduino/iot-client-go/v2"
34+
iotclient "github.com/arduino/iot-client-go/v3"
3535
"github.com/gofrs/uuid"
3636
"github.com/sirupsen/logrus"
3737
)

command/thing/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/arduino/arduino-cloud-cli/config"
2424

2525
"github.com/arduino/arduino-cloud-cli/internal/iot"
26-
iotclient "github.com/arduino/iot-client-go/v2"
26+
iotclient "github.com/arduino/iot-client-go/v3"
2727
)
2828

2929
// BindParams contains the parameters needed to

command/thing/thing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package thing
1919

2020
import (
2121
"github.com/arduino/arduino-cloud-cli/command/tag"
22-
iotclient "github.com/arduino/iot-client-go/v2"
22+
iotclient "github.com/arduino/iot-client-go/v3"
2323
)
2424

2525
// ThingInfo contains the main parameters of

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module github.com/arduino/arduino-cloud-cli
22

3-
go 1.23.0
3+
go 1.23
44

55
require (
66
github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71
77
github.com/arduino/go-paths-helper v1.12.1
88
github.com/arduino/go-win32-utils v1.0.0
9-
github.com/arduino/iot-client-go/v2 v2.0.3
9+
github.com/arduino/iot-client-go/v3 v3.0.1
1010
github.com/gofrs/uuid v4.2.0+incompatible
1111
github.com/google/go-cmp v0.6.0
1212
github.com/howeyc/crc16 v0.0.0-20171223171357-2b2a61e366a6
@@ -19,7 +19,7 @@ require (
1919
go.bug.st/cleanup v1.0.0
2020
go.bug.st/serial v1.6.2
2121
golang.org/x/crypto v0.18.0
22-
golang.org/x/oauth2 v0.21.0
22+
golang.org/x/oauth2 v0.23.0
2323
google.golang.org/grpc v1.61.0
2424
gopkg.in/yaml.v3 v3.0.1
2525
gotest.tools v2.2.0+incompatible

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ github.com/arduino/go-properties-orderedmap v1.7.1 h1:HQ9Pn/mk3+XyfrE39EEvaZwJkr
7171
github.com/arduino/go-properties-orderedmap v1.7.1/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
7272
github.com/arduino/go-win32-utils v1.0.0 h1:/cXB86sOJxOsCHP7sQmXGLkdValwJt56mIwOHYxgQjQ=
7373
github.com/arduino/go-win32-utils v1.0.0/go.mod h1:0jqM7doGEAs6DaJCxxhLBUDS5OawrqF48HqXkcEie/Q=
74-
github.com/arduino/iot-client-go/v2 v2.0.3 h1:/mYkInEgr2a4s3bSFhjCzynBApPcYlpDwsuTQiyMbag=
75-
github.com/arduino/iot-client-go/v2 v2.0.3/go.mod h1:kwX4B2AVEWl5ug94QbQ087xbvLFa9Co//jhbM/Z2eSQ=
74+
github.com/arduino/iot-client-go/v3 v3.0.1 h1:AwkctEtP7ilVXBOF2yZPJZpjpuUmKNGr/OdYxPx/4QQ=
75+
github.com/arduino/iot-client-go/v3 v3.0.1/go.mod h1:r2QEAP5Jalkr0YWNPhFl0EJzFRQNy24wN5CVbn11f64=
7676
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
7777
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
7878
github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc=
@@ -582,8 +582,8 @@ golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ
582582
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
583583
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
584584
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
585-
golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=
586-
golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
585+
golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
586+
golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
587587
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
588588
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
589589
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

0 commit comments

Comments
 (0)