Skip to content

Commit

Permalink
feat: migrate to go 1.18
Browse files Browse the repository at this point in the history
Increase go.mod version from 1.17 to 1.18 in all projects. Update Makefile
to use latest tooling. Fix golangci by disable nolintlint for now.

Signed-off-by: Dmitriy Matrenichev <[email protected]>
  • Loading branch information
DmitriyMV committed Apr 11, 2022
1 parent 9dace93 commit a7ba7ea
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# options for analysis running
run:
go: '1.18'
# default concurrency is a available CPU number
# concurrency: 4

Expand Down Expand Up @@ -155,6 +156,7 @@ linters:
- maintidx
- nestif
- nilnil # we return "nil, nil"
- nolintlint
- paralleltest
- promlinter # https://github.com/golangci/golangci-lint/issues/2222
- tagliatelle # we have many different conventions
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ DOCKER_LOGIN_ENABLED ?= true
NAME = Talos

ARTIFACTS := _out
TOOLS ?= ghcr.io/siderolabs/tools:v1.1.0-alpha.0-1-g99be089
TOOLS ?= ghcr.io/siderolabs/tools:v1.1.0-alpha.0-7-g718ec10
PKGS ?= v1.1.0-alpha.0-20-g415020f
EXTRAS ?= v1.1.0-alpha.0
GO_VERSION ?= 1.17
GO_VERSION ?= 1.18
GOIMPORTS_VERSION ?= v0.1.10
GOFUMPT_VERSION ?= v0.3.0
GOLANGCILINT_VERSION ?= v1.45.0
STRINGER_VERSION ?= v0.1.5
GOLANGCILINT_VERSION ?= v1.45.2
STRINGER_VERSION ?= v0.1.10
ENUMER_VERSION ?= v1.1.2
DEEPCOPY_GEN_VERSION ?= v0.21.3
VTPROTOBUF_VERSION ?= v0.2.0
IMPORTVET ?= ghcr.io/siderolabs/importvet:c9424fe
IMPORTVET ?= ghcr.io/siderolabs/importvet:1549a5c
OPERATING_SYSTEM := $(shell uname -s | tr "[:upper:]" "[:lower:]")
TALOSCTL_DEFAULT_TARGET := talosctl-$(OPERATING_SYSTEM)
INTEGRATION_TEST_DEFAULT_TARGET := integration-test-$(OPERATING_SYSTEM)
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/talos-systems/talos

go 1.17
go 1.18

replace (
// Use nested module.
Expand Down
2 changes: 1 addition & 1 deletion hack/cloud-image-uploader/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/talos-systems/cloud-image-uploader

go 1.17
go 1.18

require (
github.com/aws/aws-sdk-go v1.43.31
Expand Down
2 changes: 1 addition & 1 deletion hack/docgen/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/talos-systems/talos-hack-docgen

go 1.17
go 1.18

// forked go-yaml that introduces RawYAML interface, which can be used to populate YAML fields using bytes
// which are then encoded as a valid YAML blocks with proper indentiation
Expand Down
2 changes: 1 addition & 1 deletion pkg/machinery/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/talos-systems/talos/pkg/machinery

go 1.17
go 1.18

// forked go-yaml that introduces RawYAML interface, which can be used to populate YAML fields using bytes
// which are then encoded as a valid YAML blocks with proper indentiation
Expand Down

0 comments on commit a7ba7ea

Please sign in to comment.