From c7c4554d42673e4d1ef38c2c4274d87f818d527e Mon Sep 17 00:00:00 2001 From: Deepan kumar <150890063+deepan95dev@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:02:18 +0530 Subject: [PATCH] ci: Go releaser fix (#689) (#693) * fix: release permission check * try fix go releaser * touch * touch * release check * try fix * release check * fix swagger * fix swagger gen * fix * release check * update goreleaser config * revert changes * fix: ante handler ibc fix * review changes --------- Co-authored-by: atheesh Co-authored-by: akhilkumarpilli --- .github/workflows/release.yml | 5 ----- ante/testutil_test.go | 1 + docker/Dockerfile | 2 +- make/proto.mk | 3 +++ 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e14f6cfe..ed36acf41 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,11 +5,6 @@ on: defaults: run: shell: bash -permissions: - contents: write - packages: read - checks: write - jobs: # Super Linter only runs on diffs in PRs diff --git a/ante/testutil_test.go b/ante/testutil_test.go index 1041de08c..83d01204f 100644 --- a/ante/testutil_test.go +++ b/ante/testutil_test.go @@ -87,6 +87,7 @@ func (s *AnteTestSuite) SetupTest(isCheckTx bool) error { ResourceKeeper: s.app.ResourceKeeper, SignModeHandler: encodingConfig.TxConfig.SignModeHandler(), SigGasConsumer: sdkante.DefaultSigVerificationGasConsumer, + IBCKeeper: s.app.IBCKeeper, }, ) if err != nil { diff --git a/docker/Dockerfile b/docker/Dockerfile index 09f0c5031..bcdf9c9a1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ ### STAGE 1: Build node binary pre-requisites ### ############################################################### -FROM golang:1.18-alpine AS builder +FROM golang:1.21-alpine AS builder # Install minimum necessary dependencies ENV PACKAGES curl make git libc-dev bash gcc linux-headers findutils diff --git a/make/proto.mk b/make/proto.mk index bfb89aa76..42d673596 100644 --- a/make/proto.mk +++ b/make/proto.mk @@ -16,6 +16,7 @@ protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(con proto-all: proto-gen proto-swagger-gen proto-gen: + sudo find ../ -type d -exec chmod 777 {} + @echo "Generating Protobuf files" @$(protoImage) sh ./scripts/protocgen.sh; go mod tidy @@ -30,6 +31,8 @@ proto-lint: @$(protoImage) buf lint --error-format=json proto-swagger-gen: + sudo find ../ -type d -exec chmod 777 {} + + sudo chmod 666 ./app/client/docs/swagger.yaml @echo "Generating Protobuf Swagger" @$(protoImage) sh ./scripts/protoc-swagger-gen.sh;