Skip to content

Commit

Permalink
upgrade golang
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Jan 18, 2024
1 parent c3796e7 commit 7564127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.18-alpine AS build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine AS build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG VERSION
Expand Down
5 changes: 2 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"sort"
Expand Down Expand Up @@ -130,7 +129,7 @@ func main() {
fileDays := []*ethstore.Day{}
_, err := os.Stat(opts.JsonFile)
if err == nil {
fileDaysBytes, err := ioutil.ReadFile(opts.JsonFile)
fileDaysBytes, err := os.ReadFile(opts.JsonFile)
if err != nil {
log.Fatalf("error reading file: %v", err)
}
Expand Down Expand Up @@ -163,7 +162,7 @@ func main() {
if err != nil {
log.Fatalf("error marshaling ethstore: %v", err)
}
err = ioutil.WriteFile(opts.JsonFile, fileDaysJson, 0644)
err = os.WriteFile(opts.JsonFile, fileDaysJson, 0644)
if err != nil {
log.Fatalf("error writing ethstore to file: %v", err)
}
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/gobitfly/eth.store

go 1.18
go 1.20

require (
github.com/attestantio/go-eth2-client v0.19.9
Expand Down

0 comments on commit 7564127

Please sign in to comment.