Skip to content

Commit

Permalink
Use Go 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Apr 9, 2024
1 parent 1e49cc3 commit efdfb31
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS) windows/amd64 darwin/amd64
OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))

GO_VERSION ?= 1.20
GO_VERSION ?= 1.22
BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION)

OUTBIN = bin/$(BIN)-$(OS)-$(ARCH)
Expand Down Expand Up @@ -199,7 +199,7 @@ unit-tests: $(BUILD_DIRS)
./hack/test.sh $(SRC_DIRS) \
"

ADDTL_LINTERS := goconst,gofmt,goimports,unparam
ADDTL_LINTERS := gofmt,goimports,unparam

.PHONY: lint
lint: $(BUILD_DIRS)
Expand All @@ -218,7 +218,7 @@ lint: $(BUILD_DIRS)
--env GO111MODULE=on \
--env GOFLAGS="-mod=vendor" \
$(BUILD_IMAGE) \
golangci-lint run --enable $(ADDTL_LINTERS) --deadline=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default
golangci-lint run --enable $(ADDTL_LINTERS) --timeout=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default

$(BUILD_DIRS):
@mkdir -p $@
Expand Down
13 changes: 12 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@ module kmodules.xyz/kustomizer
go 1.15

require (
github.com/docker/cli v24.0.9+incompatible
github.com/docker/docker v24.0.9+incompatible
github.com/golang/protobuf v1.5.4
github.com/google/go-cmp v0.5.6 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/spf13/cobra v1.1.3
go.bytebuilders.dev/audit v0.0.33
go.bytebuilders.dev/license-proxyserver v0.0.9
go.bytebuilders.dev/license-verifier v0.14.0
go.bytebuilders.dev/license-verifier/kubernetes v0.14.0
golang.org/x/net v0.23.0
gomodules.xyz/go-sh v0.1.0
gomodules.xyz/jsonpatch/v3 v3.0.1
gomodules.xyz/password-generator v0.2.9
gomodules.xyz/x v0.0.8
google.golang.org/protobuf v1.33.0
k8s.io/apimachinery v0.21.1
k8s.io/client-go v0.21.1
kmodules.xyz/client-go v0.0.0-20211013093146-1fbfd52e78c9
kmodules.xyz/client-go v0.29.13
kmodules.xyz/resource-metadata v0.18.2
sigs.k8s.io/kustomize/api v0.8.5
sigs.k8s.io/yaml v1.2.0
)
Expand Down

0 comments on commit efdfb31

Please sign in to comment.