Skip to content

Commit

Permalink
Update Go to 1.23 (#72)
Browse files Browse the repository at this point in the history
* go get -u && go mod tidy

* Updates docker builder to use new Go

* Updates lingering references to old versions of go+staticcheck
  • Loading branch information
Eagerod authored Feb 22, 2025
1 parent 245608f commit 822ab4d
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 492 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
path: /cache

- name: test
image: golang:1.19
image: golang:1.23
commands:
- cp -r /go-cache/* /go/
- make test system-test
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.23 AS builder

WORKDIR /app

Expand All @@ -8,7 +8,7 @@ RUN \
gettext-base && \
apt-get clean

RUN go install honnef.co/go/tools/cmd/staticcheck@v0.4.2
RUN go install honnef.co/go/tools/cmd/staticcheck@v0.6.0

COPY go.mod go.sum ./

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Resources that can be managed include:

## Development

Hope uses Go 1.19, and requires staticcheck to be installed to run its linting/validation recipes:
Hope uses Go 1.23, and requires staticcheck to be installed to run its linting/validation recipes:

```
go install honnef.co/go/tools/cmd/staticcheck@v0.4.2
go install honnef.co/go/tools/cmd/staticcheck@v0.6.0
```
42 changes: 24 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
module github.com/Eagerod/hope

go 1.19
go 1.23

toolchain go1.23.6

require (
github.com/google/uuid v1.3.0
github.com/google/uuid v1.6.0
github.com/mitchellh/go-homedir v1.1.0
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.15.0
github.com/stretchr/testify v1.8.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.9.1
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.10.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/magiconair/properties v1.8.9 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.9.4 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sagikazarmark/locafero v0.7.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.12.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.22.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 822ab4d

Please sign in to comment.