Skip to content

Commit

Permalink
Upgrade to Go 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
nickstenning committed Oct 20, 2024
1 parent 4230d4a commit 2c32102
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
golang 1.22.6
golang 1.23.2
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ GO ?= go
# goreleaser v2.3.0 requires go 1.23; PR #1950 is where we're doing that. For
# now, pin to v2.2.0
GORELEASER := $(GO) run github.com/goreleaser/goreleaser/[email protected]
GOIMPORTS := $(GO) run golang.org/x/tools/cmd/goimports@latest
GOLINT := $(GO) run github.com/golangci/golangci-lint/cmd/[email protected]

PYTHON ?= python
TOX := $(PYTHON) -Im tox
Expand Down Expand Up @@ -78,7 +80,7 @@ test: test-go test-python test-integration

.PHONY: fmt
fmt:
$(GO) run golang.org/x/tools/cmd/goimports -w -d .
$(GO) run golang.org/x/tools/cmd/goimports@latest -w -d .

.PHONY: generate
generate:
Expand All @@ -90,12 +92,12 @@ vet: pkg/dockerfile/embed/.wheel

.PHONY: check-fmt
check-fmt:
$(GO) run golang.org/x/tools/cmd/goimports -d .
@test -z $$($(GO) run golang.org/x/tools/cmd/goimports -l .)
$(GOIMPORTS) -d .
@test -z $$($(GOIMPORTS) -l .)

.PHONY: lint
lint: pkg/dockerfile/embed/.wheel check-fmt vet
$(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint run ./...
$(GOLINT) run ./...
$(TOX) run --installpkg $(COG_WHEEL) -e lint,typecheck-pydantic2

.PHONY: run-docs-server
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/replicate/cog

go 1.22
go 1.23

toolchain go1.23.2

require (
github.com/anaskhan96/soup v1.2.5
Expand Down

0 comments on commit 2c32102

Please sign in to comment.