Skip to content

Commit

Permalink
refactor: update plugin to use gRPC (#22)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jeronimoalbi authored Nov 13, 2023
1 parent eaabb34 commit 0221763
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 78 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3.4.0
- uses: technote-space/get-diff-action@v6.1.2
with:
go-version: 1.19
- uses: golangci/golangci-lint-action@master
PATTERNS: |
**/*.go
go.mod
go.sum
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.50.1
go-version: '1.21'
- uses: golangci/golangci-lint-action@v3
if: env.GIT_DIFF
with:
version: v1.52.1
install-mode: goinstall
args: --timeout 10m
github-token: ${{ secrets.github_token }}
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v3.4.0
- uses: technote-space/get-diff-action@v6.1.2
with:
go-version: 1.19
PATTERNS: |
**/*.go
go.mod
go.sum
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version: '1.21'
- run: make test
if: env.GIT_DIFF
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cli-plugin-network
*.app
release/
build/
.idea/
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ linters:
disable-all: true
enable:
- bodyclose
- depguard
# - depguard
- dogsled
# - errcheck
- goconst
Expand Down
26 changes: 14 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ignite/cli-plugin-network

go 1.19
go 1.21.1

require (
cosmossdk.io/math v1.0.1
Expand All @@ -13,7 +13,7 @@ require (
github.com/goccy/go-yaml v1.9.7
github.com/golangci/golangci-lint v1.50.1
github.com/hashicorp/go-plugin v1.4.9
github.com/ignite/cli v0.27.0
github.com/ignite/cli v0.27.2-0.20231110144902-718f27cb581d
github.com/manifoldco/promptui v0.9.0
github.com/pelletier/go-toml v1.9.5
github.com/pkg/errors v0.9.1
Expand All @@ -26,7 +26,7 @@ require (
golang.org/x/sync v0.3.0
golang.org/x/tools v0.10.0
golang.org/x/vuln v0.1.0
google.golang.org/grpc v1.55.0
google.golang.org/grpc v1.56.3
google.golang.org/protobuf v1.31.0
mvdan.cc/gofumpt v0.5.0
)
Expand Down Expand Up @@ -123,10 +123,10 @@ require (
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect
github.com/docker/docker v24.0.2+incompatible // indirect
github.com/docker/docker v24.0.7+incompatible // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/emicklei/proto v1.11.2 // indirect
github.com/emicklei/proto v1.12.1 // indirect
github.com/emicklei/proto-contrib v0.14.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/esimonov/ifshort v1.0.4 // indirect
Expand Down Expand Up @@ -212,8 +212,10 @@ require (
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/huandu/skiplist v1.2.0 // indirect
github.com/iancoleman/strcase v0.2.0 // indirect
github.com/ignite/ignite-files/nodetime v0.0.2 // indirect
github.com/ignite/ignite-files/protoc v0.0.1 // indirect
github.com/ignite/modules v0.0.2 // indirect
github.com/ignite/web v0.4.3 // indirect
github.com/ignite/web v0.5.1 // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
Expand Down Expand Up @@ -361,14 +363,14 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/term v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
Loading

0 comments on commit 0221763

Please sign in to comment.