Skip to content

Commit 5077894

Browse files
umbynossilvanocerza
authored andcommitted
[skip changelog] Update cobra to latest version (arduino#1430)
* bump github.com/spf13/cobra to 1.2.1 * go mod tidy * fix CI failing * update powershell tests, in new version of cobra the completion file is different
1 parent 637e907 commit 5077894

File tree

10 files changed

+2147
-470
lines changed

10 files changed

+2147
-470
lines changed

arduino/discovery/discovery_client/go.sum

Lines changed: 423 additions & 87 deletions
Large diffs are not rendered by default.

client_example/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ replace github.com/arduino/arduino-cli => ../
66

77
require (
88
github.com/arduino/arduino-cli v0.0.0-20200109150215-ffa84fdaab21
9-
google.golang.org/grpc v1.37.0
9+
google.golang.org/grpc v1.38.0
1010
)

client_example/go.sum

Lines changed: 421 additions & 85 deletions
Large diffs are not rendered by default.

commands/daemon/term_example/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ replace github.com/arduino/arduino-cli => ../../..
66

77
require (
88
github.com/arduino/arduino-cli v0.0.0-20200109150215-ffa84fdaab21
9-
google.golang.org/grpc v1.37.0
9+
google.golang.org/grpc v1.38.0
1010
google.golang.org/protobuf v1.26.0
1111
)

commands/daemon/term_example/go.sum

Lines changed: 421 additions & 85 deletions
Large diffs are not rendered by default.

docsgen/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ replace github.com/arduino/arduino-cli => ../
77

88
require (
99
github.com/arduino/arduino-cli v0.0.0
10-
github.com/spf13/cobra v1.0.1-0.20200710201246-675ae5f5a98c
10+
github.com/spf13/cobra v1.2.1
1111
)

docsgen/go.sum

Lines changed: 435 additions & 100 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,22 @@ require (
3333
github.com/segmentio/stats/v4 v4.5.3
3434
github.com/sergi/go-diff v1.1.0 // indirect
3535
github.com/sirupsen/logrus v1.4.2
36-
github.com/spf13/cobra v1.0.1-0.20200710201246-675ae5f5a98c
37-
github.com/spf13/jwalterweatherman v1.0.0
38-
github.com/spf13/viper v1.6.2
39-
github.com/stretchr/testify v1.6.1
36+
github.com/spf13/cobra v1.2.1
37+
github.com/spf13/jwalterweatherman v1.1.0
38+
github.com/spf13/viper v1.8.1
39+
github.com/stretchr/testify v1.7.0
4040
go.bug.st/cleanup v1.0.0
4141
go.bug.st/downloader/v2 v2.1.1
4242
go.bug.st/relaxed-semver v0.0.0-20190922224835-391e10178d18
4343
go.bug.st/serial v1.1.2
4444
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45 // indirect
4545
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
4646
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125 // indirect
47-
golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6 // indirect
4847
golang.org/x/text v0.3.6
49-
google.golang.org/genproto v0.0.0-20210504143626-3b2ad6ccc450
50-
google.golang.org/grpc v1.37.0
48+
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c
49+
google.golang.org/grpc v1.38.0
5150
google.golang.org/protobuf v1.26.0
5251
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
5352
gopkg.in/src-d/go-git.v4 v4.13.1
54-
gopkg.in/yaml.v2 v2.3.0
53+
gopkg.in/yaml.v2 v2.4.0
5554
)

go.sum

Lines changed: 435 additions & 100 deletions
Large diffs are not rendered by default.

test/test_completion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def test_completion_powershell(run_command):
4949
result = run_command("completion powershell")
5050
assert result.ok
5151
assert result.stderr == ""
52-
assert "Register-ArgumentCompleter -Native -CommandName 'arduino-cli' -ScriptBlock {" in result.stdout
53-
assert "'arduino-cli;completion' {" in result.stdout
52+
assert "# powershell completion for arduino-cli" in result.stdout
53+
assert "Register-ArgumentCompleter -CommandName 'arduino-cli' -ScriptBlock" in result.stdout
5454

5555

5656
def test_completion_bash_no_desc(run_command):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy