Skip to content

Commit

Permalink
chore(deps): updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre committed Nov 18, 2024
1 parent ca0c7b5 commit af57e5b
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 89 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -26,6 +26,6 @@ jobs:
run: go test -gcflags=-l -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage report
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/deadlock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Build the binary
run: make build_gui

- name: Installing golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62

- name: Lint check
run: BUILD_TAG=gtk make check
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Build the binary
run: make build_gui
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Checkout code
uses: actions/checkout@v4

- name: Installing golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62

- name: Formatting and linting the project
run: make check
12 changes: 6 additions & 6 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Create release files
run: bash ./.github/releasers/releaser_cli.sh
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Create release files
run: bash ./.github/releasers/releaser_gui_linux.sh
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Create release files
run: bash ./.github/releasers/releaser_gui_macos.sh
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Create release files
run: bash ./.github/releasers/releaser_gui_macos.sh
Expand Down Expand Up @@ -261,11 +261,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download SHA256SUMS artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sha256sums

- uses: sigstore/cosign-installer@v3.7.0
- uses: sigstore/cosign-installer@v3

- name: Sign Checksum
run: cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY SHA256SUMS > SHA256SUMS.sig
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
go-version: '1.23.3'

- name: Unit tests
run: make unit_test
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ linters:
- copyloopvar
- forbidigo
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gocognit
- gocritic
Expand Down Expand Up @@ -132,6 +131,9 @@ linters-settings:
- name: "import-shadowing"
disabled: true

- name: redefines-builtin-id
disabled: true

- name: unhandled-error
arguments:
- "fmt.Printf"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.2-alpine3.19 as builder
FROM golang:1.23.3-alpine3.19 as builder

RUN apk add --no-cache git gmp-dev build-base g++ openssl-dev
ADD . /pactus
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ all: build test
### Tools needed for development
devtools:
@echo "Installing devtools"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.22
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.22
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.23
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.23
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5
go install github.com/NathanBaulch/[email protected]
go install github.com/pactus-project/protoc-gen-doc/cmd/[email protected]
go install github.com/bufbuild/buf/cmd/buf@v1.42
go install github.com/bufbuild/buf/cmd/buf@v1.47
go install mvdan.cc/gofumpt@latest
go install github.com/pacviewer/jrpc-gateway/protoc-gen-jrpc-gateway@v0.3.2
go install github.com/pacviewer/jrpc-gateway/protoc-gen-jrpc-gateway@v0.5

########################################
### Building
Expand Down
8 changes: 5 additions & 3 deletions docs/update-dependensies.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ First of all you need to update golang dependencies to latest version using this
go get -u ./...
go mod tidy
```
Once all packages got updated, make sure you run `make build`, `make test` and `make build_gui` commands to make sure
none of previous behaviors are broken. If any packages had breaking changes or some of them are deprecated, you need to
update the code and use new methods or use another package.

Once all packages got updated, make sure you run `make build`, `make test` and `make build_gui` commands to
make sure none of previous behaviors are broken.
If any packages had breaking changes or some of them are deprecated,
you need to update the code and use new methods or use another package.

### Dev tools

Expand Down
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/pactus-project/pactus

go 1.23.2
go 1.23.3

require (
github.com/NathanBaulch/protoc-gen-cobra v1.2.1
Expand All @@ -21,7 +21,7 @@ require (
github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213
github.com/kilic/bls12-381 v0.1.0
github.com/libp2p/go-libp2p v0.37.0
github.com/libp2p/go-libp2p-kad-dht v0.27.0
github.com/libp2p/go-libp2p-kad-dht v0.28.1
github.com/libp2p/go-libp2p-pubsub v0.12.0
github.com/manifoldco/promptui v0.9.0
github.com/multiformats/go-multiaddr v0.14.0
Expand All @@ -41,7 +41,7 @@ require (
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
golang.org/x/term v0.26.0
google.golang.org/grpc v1.68.0
google.golang.org/protobuf v1.35.1
google.golang.org/protobuf v1.35.2
gopkg.in/natefinch/lumberjack.v2 v2.2.1
)

Expand Down Expand Up @@ -124,7 +124,7 @@ require (
github.com/multiformats/go-multibase v0.2.0 // indirect
github.com/multiformats/go-multicodec v0.9.0 // indirect
github.com/multiformats/go-multihash v0.2.3 // indirect
github.com/multiformats/go-multistream v0.5.0 // indirect
github.com/multiformats/go-multistream v0.6.0 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/onsi/ginkgo/v2 v2.21.0 // indirect
Expand Down Expand Up @@ -178,8 +178,8 @@ require (
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.27.0 // indirect
gonum.org/v1/gonum v0.15.1 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241113202542-65e8d215514f // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
Expand Down
Loading

0 comments on commit af57e5b

Please sign in to comment.