File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.18 -alpine AS build
1
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 -alpine AS build
2
2
ARG TARGETPLATFORM
3
3
ARG BUILDPLATFORM
4
4
ARG VERSION
Original file line number Diff line number Diff line change 6
6
"errors"
7
7
"flag"
8
8
"fmt"
9
- "io/ioutil"
10
9
"log"
11
10
"os"
12
11
"sort"
@@ -130,7 +129,7 @@ func main() {
130
129
fileDays := []* ethstore.Day {}
131
130
_ , err := os .Stat (opts .JsonFile )
132
131
if err == nil {
133
- fileDaysBytes , err := ioutil .ReadFile (opts .JsonFile )
132
+ fileDaysBytes , err := os .ReadFile (opts .JsonFile )
134
133
if err != nil {
135
134
log .Fatalf ("error reading file: %v" , err )
136
135
}
@@ -163,7 +162,7 @@ func main() {
163
162
if err != nil {
164
163
log .Fatalf ("error marshaling ethstore: %v" , err )
165
164
}
166
- err = ioutil .WriteFile (opts .JsonFile , fileDaysJson , 0644 )
165
+ err = os .WriteFile (opts .JsonFile , fileDaysJson , 0644 )
167
166
if err != nil {
168
167
log .Fatalf ("error writing ethstore to file: %v" , err )
169
168
}
Original file line number Diff line number Diff line change 1
1
module github.com/gobitfly/eth.store
2
2
3
- go 1.18
3
+ go 1.20
4
4
5
5
require (
6
6
github.com/attestantio/go-eth2-client v0.19.9
You can’t perform that action at this time.
0 commit comments