Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Commit 0221763

Browse files
authored
refactor: update plugin to use gRPC (#22)
* refactor: update plugin to use gRPC * chore: update Go and Ignite dependency version * fix: correct port data type * chore: change gitignore to exclude app binaries * refactor: change plugin to support the client API * chore: update dependencies * ci: update workflows to work with Go `v1.21` * chore: remove unused golangci-lint linter * chore: fix linting issues
1 parent eaabb34 commit 0221763

File tree

11 files changed

+154
-78
lines changed

11 files changed

+154
-78
lines changed

.github/workflows/test-lint.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 6
1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up Go
17-
uses: actions/setup-go@v3
15+
- uses: actions/[email protected]
16+
- uses: technote-space/[email protected]
1817
with:
19-
go-version: 1.19
20-
- uses: golangci/golangci-lint-action@master
18+
PATTERNS: |
19+
**/*.go
20+
go.mod
21+
go.sum
22+
- uses: actions/setup-go@v4
23+
if: env.GIT_DIFF
2124
with:
22-
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
23-
version: v1.50.1
25+
go-version: '1.21'
26+
- uses: golangci/golangci-lint-action@v3
27+
if: env.GIT_DIFF
28+
with:
29+
version: v1.52.1
30+
install-mode: goinstall
2431
args: --timeout 10m
2532
github-token: ${{ secrets.github_token }}

.github/workflows/test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-go@v3
14+
- uses: actions/checkout@v3.4.0
15+
- uses: technote-space/[email protected]
1616
with:
17-
go-version: 1.19
17+
PATTERNS: |
18+
**/*.go
19+
go.mod
20+
go.sum
21+
- uses: actions/setup-go@v4
22+
if: env.GIT_DIFF
23+
with:
24+
go-version: '1.21'
1825
- run: make test
26+
if: env.GIT_DIFF

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cli-plugin-network
1+
*.app
22
release/
33
build/
44
.idea/

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ linters:
77
disable-all: true
88
enable:
99
- bodyclose
10-
- depguard
10+
# - depguard
1111
- dogsled
1212
# - errcheck
1313
- goconst

go.mod

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ignite/cli-plugin-network
22

3-
go 1.19
3+
go 1.21.1
44

55
require (
66
cosmossdk.io/math v1.0.1
@@ -13,7 +13,7 @@ require (
1313
github.com/goccy/go-yaml v1.9.7
1414
github.com/golangci/golangci-lint v1.50.1
1515
github.com/hashicorp/go-plugin v1.4.9
16-
github.com/ignite/cli v0.27.0
16+
github.com/ignite/cli v0.27.2-0.20231110144902-718f27cb581d
1717
github.com/manifoldco/promptui v0.9.0
1818
github.com/pelletier/go-toml v1.9.5
1919
github.com/pkg/errors v0.9.1
@@ -26,7 +26,7 @@ require (
2626
golang.org/x/sync v0.3.0
2727
golang.org/x/tools v0.10.0
2828
golang.org/x/vuln v0.1.0
29-
google.golang.org/grpc v1.55.0
29+
google.golang.org/grpc v1.56.3
3030
google.golang.org/protobuf v1.31.0
3131
mvdan.cc/gofumpt v0.5.0
3232
)
@@ -123,10 +123,10 @@ require (
123123
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
124124
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
125125
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect
126-
github.com/docker/docker v24.0.2+incompatible // indirect
126+
github.com/docker/docker v24.0.7+incompatible // indirect
127127
github.com/dustin/go-humanize v1.0.1 // indirect
128128
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
129-
github.com/emicklei/proto v1.11.2 // indirect
129+
github.com/emicklei/proto v1.12.1 // indirect
130130
github.com/emicklei/proto-contrib v0.14.0 // indirect
131131
github.com/emirpasic/gods v1.18.1 // indirect
132132
github.com/esimonov/ifshort v1.0.4 // indirect
@@ -212,8 +212,10 @@ require (
212212
github.com/hexops/gotextdiff v1.0.3 // indirect
213213
github.com/huandu/skiplist v1.2.0 // indirect
214214
github.com/iancoleman/strcase v0.2.0 // indirect
215+
github.com/ignite/ignite-files/nodetime v0.0.2 // indirect
216+
github.com/ignite/ignite-files/protoc v0.0.1 // indirect
215217
github.com/ignite/modules v0.0.2 // indirect
216-
github.com/ignite/web v0.4.3 // indirect
218+
github.com/ignite/web v0.5.1 // indirect
217219
github.com/imdario/mergo v0.3.15 // indirect
218220
github.com/inconshreveable/mousetrap v1.1.0 // indirect
219221
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
@@ -361,14 +363,14 @@ require (
361363
go.uber.org/multierr v1.11.0 // indirect
362364
go.uber.org/zap v1.24.0 // indirect
363365
golang.org/x/arch v0.3.0 // indirect
364-
golang.org/x/crypto v0.10.0 // indirect
366+
golang.org/x/crypto v0.14.0 // indirect
365367
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
366368
golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect
367-
golang.org/x/mod v0.11.0 // indirect
368-
golang.org/x/net v0.11.0 // indirect
369-
golang.org/x/sys v0.9.0 // indirect
370-
golang.org/x/term v0.9.0 // indirect
371-
golang.org/x/text v0.10.0 // indirect
369+
golang.org/x/mod v0.12.0 // indirect
370+
golang.org/x/net v0.17.0 // indirect
371+
golang.org/x/sys v0.13.0 // indirect
372+
golang.org/x/term v0.13.0 // indirect
373+
golang.org/x/text v0.13.0 // indirect
372374
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
373375
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
374376
gopkg.in/ini.v1 v1.67.0 // indirect

0 commit comments

Comments
 (0)