Skip to content

Commit

Permalink
Bump golang version to 1.19 (#1402)
Browse files Browse the repository at this point in the history
* Bump golang version to 1.19

* Update docs, Dockerfile and goreleaser version
  • Loading branch information
Stefan-Ethernal authored Apr 21, 2023
1 parent fee5ae0 commit ce1bd88
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Build Polygon Edge
run: go build -tags netgo -ldflags="-s -w -linkmode external -extldflags "-static" -X \"github.com/0xPolygon/polygon-edge/versioning.Version=${GITHUB_REF_NAME}\" -X \"github.com/0xPolygon/polygon-edge/versioning.Commit=${GITHUB_SHA}\"" && tar -czvf polygon-edge.tar.gz polygon-edge
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: 'Reproduce builds'
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-polybft.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@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Run tests
run: make test-e2e-polybft
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Run tests
run: make test-e2e
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzz-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Checkout Code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Checkout code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/loadtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Checkout code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/property-polybft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Run tests
run: make test-property-polybft
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Prepare
id: prepare
Expand All @@ -48,7 +48,7 @@ jobs:
--rm-dist --skip-validate
env:
PACKAGE_NAME: github.com/0xPolygon/polygon-edge
GOLANG_CROSS_VERSION: v1.18.3
GOLANG_CROSS_VERSION: v1.19.5
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Checkout Code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
### `polybft` consensus
When deploying with `polybft` consensus, there are some additional dependencies:
* [npm](https://nodejs.org/en/)
* [go 1.18.x](https://go.dev/dl/)
* [go 1.19.x](https://go.dev/dl/)

## Local development
Running `polygon-edge` local cluster with docker can be done very easily by using provided `scripts` folder
Expand Down
2 changes: 1 addition & 1 deletion docker/local/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS builder
FROM golang:1.19-alpine AS builder

WORKDIR /polygon-edge

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/0xPolygon/polygon-edge

go 1.18
go 1.19

require (
github.com/btcsuite/btcd v0.22.1
Expand Down
2 changes: 1 addition & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

When deploying with `polybft` consensus, there are some additional dependencies:
* [npm](https://nodejs.org/en/)
* [go 1.18.x](https://go.dev/dl/)
* [go 1.19.x](https://go.dev/dl/)

## Local development
Running `polygon-edge` from local binary can be done very easily by using provided `scripts` folder.
Expand Down

0 comments on commit ce1bd88

Please sign in to comment.