mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
go.mod: minimal go version 1.20 (#8495)
Because 1.19 is not working anymore.
This commit is contained in:
parent
9e42b705ce
commit
911da43128
@ -1,5 +1,5 @@
|
|||||||
# syntax = docker/dockerfile:1.2
|
# syntax = docker/dockerfile:1.2
|
||||||
FROM docker.io/library/golang:1.19-bullseye AS builder
|
FROM docker.io/library/golang:1.20-bullseye AS builder
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install -y build-essential git bash ca-certificates libstdc++6
|
RUN apt install -y build-essential git bash ca-certificates libstdc++6
|
||||||
@ -17,7 +17,7 @@ RUN --mount=type=cache,target=/root/.cache \
|
|||||||
make all
|
make all
|
||||||
|
|
||||||
|
|
||||||
FROM docker.io/library/golang:1.19-alpine3.16 AS tools-builder
|
FROM docker.io/library/golang:1.20-alpine3.17 AS tools-builder
|
||||||
|
|
||||||
RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++
|
RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
4
Makefile
4
Makefile
@ -42,8 +42,8 @@ default: all
|
|||||||
|
|
||||||
## go-version: print and verify go version
|
## go-version: print and verify go version
|
||||||
go-version:
|
go-version:
|
||||||
@if [ $(shell $(GO) version | cut -c 16-17) -lt 19 ]; then \
|
@if [ $(shell $(GO) version | cut -c 16-17) -lt 20 ]; then \
|
||||||
echo "minimum required Golang version is 1.19"; \
|
echo "minimum required Golang version is 1.20"; \
|
||||||
exit 1 ;\
|
exit 1 ;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ Bear in mind that SSD performance deteriorates when close to capacity.
|
|||||||
|
|
||||||
RAM: >=16GB, 64-bit architecture.
|
RAM: >=16GB, 64-bit architecture.
|
||||||
|
|
||||||
[Golang version >= 1.19](https://golang.org/doc/install); GCC 10+ or Clang; On Linux: kernel > v4
|
[Golang version >= 1.20](https://golang.org/doc/install); GCC 10+ or Clang; On Linux: kernel > v4
|
||||||
|
|
||||||
<code>🔬 more details on disk storage [here](https://erigon.substack.com/p/disk-footprint-changes-in-new-erigon?s=r)
|
<code>🔬 more details on disk storage [here](https://erigon.substack.com/p/disk-footprint-changes-in-new-erigon?s=r)
|
||||||
and [here](https://ledgerwatch.github.io/turbo_geth_release.html#Disk-space).</code>
|
and [here](https://ledgerwatch.github.io/turbo_geth_release.html#Disk-space).</code>
|
||||||
@ -210,7 +210,7 @@ Windows users may run erigon in 3 possible ways:
|
|||||||
build on windows :
|
build on windows :
|
||||||
* [Git](https://git-scm.com/downloads) for Windows must be installed. If you're cloning this repository is very
|
* [Git](https://git-scm.com/downloads) for Windows must be installed. If you're cloning this repository is very
|
||||||
likely you already have it
|
likely you already have it
|
||||||
* [GO Programming Language](https://golang.org/dl/) must be installed. Minimum required version is 1.19
|
* [GO Programming Language](https://golang.org/dl/) must be installed. Minimum required version is 1.20
|
||||||
* GNU CC Compiler at least version 10 (is highly suggested that you install `chocolatey` package manager - see
|
* GNU CC Compiler at least version 10 (is highly suggested that you install `chocolatey` package manager - see
|
||||||
following point)
|
following point)
|
||||||
* If you need to build MDBX tools (i.e. `.\wmake.ps1 db-tools`)
|
* If you need to build MDBX tools (i.e. `.\wmake.ps1 db-tools`)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module github.com/ledgerwatch/erigon/cmd/release/v2
|
module github.com/ledgerwatch/erigon/cmd/release/v2
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|
||||||
require github.com/hashicorp/go-version v1.6.0
|
require github.com/hashicorp/go-version v1.6.0
|
||||||
|
2
erigon-lib/.github/workflows/ci.yml
vendored
2
erigon-lib/.github/workflows/ci.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
fetch-depth: 0 # fetch git tags for "git describe"
|
fetch-depth: 0 # fetch git tags for "git describe"
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.19'
|
go-version: '1.20'
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module github.com/ledgerwatch/erigon-lib
|
module github.com/ledgerwatch/erigon-lib
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/erigontech/mdbx-go v0.27.17
|
github.com/erigontech/mdbx-go v0.27.17
|
||||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module github.com/ledgerwatch/erigon
|
module github.com/ledgerwatch/erigon
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/erigontech/mdbx-go v0.27.17
|
github.com/erigontech/mdbx-go v0.27.17
|
||||||
|
@ -405,7 +405,7 @@ if (!Test-Path -Path [string](Join-Path $MyContext.Directory "\.git") -PathType
|
|||||||
if(!(Test-Git-Installed)) { exit 1 }
|
if(!(Test-Git-Installed)) { exit 1 }
|
||||||
|
|
||||||
## Test GO language is installed AND min version
|
## Test GO language is installed AND min version
|
||||||
if(!(Test-GO-Installed "1.19")) { exit 1 }
|
if(!(Test-GO-Installed "1.20")) { exit 1 }
|
||||||
|
|
||||||
# Build erigon binaries
|
# Build erigon binaries
|
||||||
Set-Variable -Name "Erigon" -Value ([hashtable]::Synchronized(@{})) -Scope Script
|
Set-Variable -Name "Erigon" -Value ([hashtable]::Synchronized(@{})) -Scope Script
|
||||||
|
Loading…
Reference in New Issue
Block a user